1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-10-18 09:40:16 -04:00

Removed dumping of the stats on exit

This patch removes the logging of the raw stats dict when the commands
exit.
This commit is contained in:
Hemna 2024-10-17 17:01:36 -04:00
parent 758007ea3f
commit 5314856101
3 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,8 @@ def signal_handler(sig, frame):
),
)
time.sleep(5)
LOG.info(collector.Collector().collect())
# Last save to disk
collector.Collector().collect()
class APRSDListenThread(rx.APRSDRXThread):

View File

@ -64,7 +64,7 @@ def signal_handler(sig, frame):
time.sleep(1.5)
# packets.WatchList().save()
# packets.SeenList().save()
LOG.info(stats.stats_collector.collect())
stats.stats_collector.collect()
LOG.info("Telling flask to bail.")
signal.signal(signal.SIGTERM, sys.exit(0))

View File

@ -83,7 +83,7 @@ def signal_handler(sig, frame):
packets.WatchList().save()
packets.SeenList().save()
packets.PacketList().save()
LOG.info(collector.Collector().collect())
collector.Collector().collect()
# signal.signal(signal.SIGTERM, sys.exit(0))
# sys.exit(0)