Skip to content

Commit b1f6c9a

Browse files
committed
Fix logging statement
1 parent b303d5a commit b1f6c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netflowbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ def get_traffic_for_entity(interval_label, last_used_ts, max_ts, time_between, d
305305
v = traffic_bytes / time_between
306306
if v < 0:
307307
# invalid condition - to find the cause we need some additional logging:
308-
log.error(f"Sum of positive numbers should never be negative! " +
309-
"{v} {traffic_bytes} {time_between} {sql} {entity_ip} {last_used_ts} {max_ts} {direction}")
308+
log.error("Sum of positive numbers should never be negative! " +
309+
f"{v} {traffic_bytes} {time_between} {sql} {entity_ip} {last_used_ts} {max_ts} {direction}")
310310
continue # this is never ok - skip this value
311311

312312
values.append({

0 commit comments

Comments
 (0)