Another round of formatting changes.

Implement class-level logging in places.
This commit is contained in:
Paul Kronenwetter 2022-05-27 22:17:15 -04:00
parent bea8679cef
commit c0c1518fd0

View file

@ -37,6 +37,8 @@ DAEMON_QUEUE = queue.Queue()
CONNECTED_CLIENTS = set()
CLOSE_SIGNAL = False
log = structlog.get_logger("sock")
class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
"""
@ -438,7 +440,6 @@ def process_tnc_commands(data):
log.error("[TNC] JSON decoding error", e=err)
def send_tnc_state():
"""
send the tnc state to network
@ -671,7 +672,6 @@ def process_daemon_commands(data):
log.warning("[SCK] command execution error", e=err, command=received_json)
def send_daemon_state():
"""
send the daemon state to network