From c0c1518fd0c55b1cd4c534d31d389b8c083d1b4c Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Fri, 27 May 2022 22:17:15 -0400 Subject: [PATCH] Another round of formatting changes. Implement class-level logging in places. --- tnc/sock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tnc/sock.py b/tnc/sock.py index 32483856..847c6fd4 100644 --- a/tnc/sock.py +++ b/tnc/sock.py @@ -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