mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-27 18:52:23 +02:00
log: suppress marker sink stats when no matches received
This commit is contained in:
parent
11461982b6
commit
04592a1107
@ -127,13 +127,13 @@ class MarkerManager:
|
|||||||
if listener is None:
|
if listener is None:
|
||||||
break
|
break
|
||||||
received, errors = listener._received, listener._errors
|
received, errors = listener._received, listener._errors
|
||||||
rate = received / 10.0 if received else 0
|
|
||||||
log.info(
|
|
||||||
"marker sink: %d matches (%.0f/s), %d errors in last 10s",
|
|
||||||
received, rate, errors,
|
|
||||||
)
|
|
||||||
listener._received = 0
|
listener._received = 0
|
||||||
listener._errors = 0
|
listener._errors = 0
|
||||||
|
if received:
|
||||||
|
log.info(
|
||||||
|
"marker sink: %d matches (%.0f/s), %d errors in last 10s",
|
||||||
|
received, received / 10.0, errors,
|
||||||
|
)
|
||||||
|
|
||||||
async def stop(self):
|
async def stop(self):
|
||||||
"""Close the UDP sink and drop the whole registry."""
|
"""Close the UDP sink and drop the whole registry."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user