wip
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user