This commit is contained in:
Your Name
2024-02-16 19:56:36 -06:00
parent 28ff6d11e2
commit 090af40dc1
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class Watcher:
global watcher_sock
Watcher.ensure_socket_connected() # Ensure the socket is connected before attempting to log
if watcher_sock: # Proceed only if sock is not None (i.e., is connected)
message_json = json.dumps({var_name: message})
message_json = json.dumps([var_name, message])
try:
watcher_sock.sendall(message_json.encode('utf-8') + b'\n')
except socket.error: