Skip to content

Commit eb62170

Browse files
committed
routes/kill.py: log error for HTTPException
Errors are logged for HTTPError and Exception, also log them for HTTPException before raising the exception. Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 8f8ea00 commit eb62170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/teuthology_api/routes/kill.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ async def create_run(
3232
try:
3333
args = args.model_dump(by_alias=True, exclude_unset=True)
3434
return await run(args, logs, token, request)
35-
except HTTPException:
35+
except HTTPException as http_exp:
36+
log.error(http_exp)
3637
raise
3738
except HTTPError as http_err:
3839
log.error(http_err)

0 commit comments

Comments
 (0)