mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Another round of formatting changes.
Implement class-level logging in places.
This commit is contained in:
parent
bea8679cef
commit
c0c1518fd0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue