Skip to content

Commit 74eb039

Browse files
authored
Fix warning for 0-valued distribution boundaries (census-instrumentation#521)
1 parent 28ad26d commit 74eb039

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

opencensus/stats/aggregation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ def __init__(self,
143143
else:
144144
ii += 1
145145
if ii:
146-
logger.warning("Dropping {} negative bucket boundaries, the "
147-
"values must be strictly > 0"
148-
.format(ii))
146+
logger.warning("Dropping %s non-positive bucket boundaries",
147+
ii)
149148
boundaries = boundaries[ii:]
150149

151150
super(DistributionAggregation, self).__init__(

0 commit comments

Comments
 (0)