Skip to content

Commit

Permalink
Test generic exception logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed May 3, 2024
1 parent 8235ce8 commit eda1609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/noteburst/worker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ async def startup(ctx: dict[Any, Any]) -> None:
body=e.response.json(),
)
raise
except Exception:
logger.exception("Generic error logging into JupyterHub")
raise
try:
image_info = await jupyter_client.spawn_lab()
logger = logger.bind(image_ref=image_info.reference)
Expand Down

0 comments on commit eda1609

Please sign in to comment.