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

Log closing client connection.

This patch updates the aprsis connection client to add logging
when the close() happens
This commit is contained in:
Hemna 2024-10-17 17:09:11 -04:00
parent 3e9bf2422a
commit 9951b12e2d

View File

@ -33,7 +33,11 @@ class Aprsdis(aprslib.IS):
def stop(self): def stop(self):
self.thread_stop = True self.thread_stop = True
LOG.info("Shutdown Aprsdis client.") LOG.warning("Shutdown Aprsdis client.")
def close(self):
LOG.warning("Closing Aprsdis client.")
super().close()
@wrapt.synchronized(lock) @wrapt.synchronized(lock)
def send(self, packet: core.Packet): def send(self, packet: core.Packet):