From 71a18fe9991f68372e410cf20ee24803fa050155 Mon Sep 17 00:00:00 2001 From: fred3m Date: Mon, 2 Dec 2024 09:53:27 -0800 Subject: [PATCH] Log commands to better track errors in the future --- python/lsst/rubintv/analysis/service/worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/rubintv/analysis/service/worker.py b/python/lsst/rubintv/analysis/service/worker.py index 8cfdf67..109d703 100644 --- a/python/lsst/rubintv/analysis/service/worker.py +++ b/python/lsst/rubintv/analysis/service/worker.py @@ -82,7 +82,9 @@ def run(self) -> None: def on_message(ws: WebSocketApp, message: str) -> None: """Message received from the server.""" + logger.info(f"Executing command: {message}") response = execute_command(message, self.data_center) + logger.info(f"Sending response") ws.send(response) logger.connection(f"Connecting to rubinTV at {self._address}:{self._port}")