1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-18 06:11:49 -05:00

Add log info for Beacon and Registry threads

This commit is contained in:
Hemna 2024-02-27 16:01:15 -05:00
parent 6a7d7ad79b
commit a4630c15be
2 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,11 @@ class APRSRegistryThread(aprsd_threads.APRSDThread):
"APRS Registry thread is STOPPING.",
)
self.stop()
LOG.info(
"APRS Registry thread is running and will send "
f"info every {CONF.aprs_registry.frequency_seconds} seconds "
f"to {CONF.aprs_registry.registry_url}.",
)
def loop(self):
# Only call the registry every N seconds

View File

@ -214,6 +214,10 @@ class BeaconSendThread(aprsd_threads.APRSDThread):
"Beacon will not be sent and thread is STOPPED.",
)
self.stop()
LOG.info(
"Beacon thread is running and will send "
f"beacons every {CONF.beacon_interval} seconds.",
)
def loop(self):
# Only dump out the stats every N seconds