This commit is contained in:
Your Name
2024-02-16 19:18:18 -06:00
parent 915d8a058a
commit 19673dc652
3 changed files with 15 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ class Watcher:
def log_watch(var_name, message):
global watcher_sock
ensure_socket_connected() # Ensure the socket is connected before attempting to log
self.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(message)
try: