Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 74eb039

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)