Commit e035a18
committed
Fix LogFlusher unreachable 'no metrics' branch
Change condition from 'if parts:' to 'if len(parts) > 1:' to correctly
detect when no metrics are present beyond the prefix. Previously, parts
was always truthy since it was initialized with [self.__prefix], making
the 'No metrics to flush' message unreachable.1 parent b706688 commit e035a18
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments