diff --git a/src/xfel_calibrate/setup_logging.py b/src/xfel_calibrate/setup_logging.py
index ba7015e59ca29609ddbdcf06663b798d8f8d1bca..24d1c7f775a2fa1e21121673d1ffc562dc66c55c 100644
--- a/src/xfel_calibrate/setup_logging.py
+++ b/src/xfel_calibrate/setup_logging.py
@@ -99,9 +99,7 @@ def safe_handle_error(exc_type, exc_value, exc_traceback):
     handling_error = True
     try:
         # Log the error with the notebook name, job ID, and additional metadata
-        logger.error(
-            "An error occurred. Exception type: %s, Message: %s",
-            exc_type.__name__, str(exc_value),
+        logger.error(str(exc_value),
             extra={
                 'notebook': NOTEBOOK_NAME,
                 'job_id': JOB_ID,