Commit f6e8a6a
committed
Bugfix: 0 is now considered a valid step number in log_time_series_metrics
Previously, when log_time_series_metrics is called without a step value it defaults to None. The function internally checked `if not step` and
in this case, determined a step number. The problem is that 0 is falsy and therefore the function turns step=0 into step=1 which is a problem if
the function is later called with step=1 (in that case the first logged values are overwritten)
Checking for `if step is None` fixes the problem.1 parent 7bf2437 commit f6e8a6a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| |||
0 commit comments