Skip to content

Commit 6ec8b8a

Browse files
committed
Log exception when recording IP changes fails
1 parent 040a78d commit 6ec8b8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dispatcher/backend/src/routes/requested_tasks/requested_task.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,13 @@ def get(self, session: so.Session, token: AccessToken.Payload):
248248
if constants.USES_WORKERS_IPS_WHITELIST:
249249
try:
250250
record_ip_change(session=session, worker_name=worker_name)
251-
except Exception:
251+
except Exception as exc:
252+
logger.exception(
253+
"Pushing IP changes to Wasabi failed", exc_info=exc
254+
)
252255
raise HTTPBase(
253256
status_code=HTTPStatus.SERVICE_UNAVAILABLE,
254-
error="Recording IP changes failed",
257+
error="Pushing IP changes to Wasabi failed",
255258
)
256259

257260
request_args = WorkerRequestedTaskSchema().load(request_args)

0 commit comments

Comments
 (0)