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