Skip to content

Commit

Permalink
Log commands to better track errors in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed Dec 2, 2024
1 parent c1daa32 commit 71a18fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/rubintv/analysis/service/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check failure on line 87 in python/lsst/rubintv/analysis/service/worker.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

F541

f-string is missing placeholders
ws.send(response)

logger.connection(f"Connecting to rubinTV at {self._address}:{self._port}")
Expand Down

0 comments on commit 71a18fe

Please sign in to comment.