Skip to content
Snippets Groups Projects
Commit 89ff9d01 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

uncaught error same raw string

parent d1708a78
No related branches found
No related tags found
1 merge request!1059[webservice] Intoduce Global Logger for xfel-calibrate
...@@ -99,9 +99,7 @@ def safe_handle_error(exc_type, exc_value, exc_traceback): ...@@ -99,9 +99,7 @@ def safe_handle_error(exc_type, exc_value, exc_traceback):
handling_error = True handling_error = True
try: try:
# Log the error with the notebook name, job ID, and additional metadata # Log the error with the notebook name, job ID, and additional metadata
logger.error( logger.error(str(exc_value),
"An error occurred. Exception type: %s, Message: %s",
exc_type.__name__, str(exc_value),
extra={ extra={
'notebook': NOTEBOOK_NAME, 'notebook': NOTEBOOK_NAME,
'job_id': JOB_ID, 'job_id': JOB_ID,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment