Skip to content

Commit 641381a

Browse files
committed
Added debug logs to keep track of request to start multigrid watcher
1 parent ad19a31 commit 641381a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/murfey/server/api/instrument.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ async def start_multigrid_watcher(session_id: MurfeySessionID, db=murfey_db):
149149
instrument_name
150150
]
151151
if machine_config.instrument_server_url:
152+
log.debug(
153+
f"Submitting request to start multigrid watcher for session {session_id} "
154+
f"with processing {('enabled' if process else 'disabled')}"
155+
)
152156
async with aiohttp.ClientSession() as clientsession:
153157
async with clientsession.post(
154158
f"{machine_config.instrument_server_url}/sessions/{session_id}/start_multigrid_watcher?process={'true' if process else 'false'}",
@@ -157,6 +161,7 @@ async def start_multigrid_watcher(session_id: MurfeySessionID, db=murfey_db):
157161
},
158162
) as resp:
159163
data = await resp.json()
164+
log.debug(f"Received response: {data}")
160165
return data
161166

162167

0 commit comments

Comments
 (0)