From 8a072f3256a37635080e232e3481adcb6363318f Mon Sep 17 00:00:00 2001 From: Ben Galewsky Date: Fri, 5 Jul 2024 12:00:43 -0500 Subject: [PATCH] Fix error reporting --- src/servicex_did_finder_lib/did_finder_app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/servicex_did_finder_lib/did_finder_app.py b/src/servicex_did_finder_lib/did_finder_app.py index 07746b8..f577253 100644 --- a/src/servicex_did_finder_lib/did_finder_app.py +++ b/src/servicex_did_finder_lib/did_finder_app.py @@ -100,10 +100,11 @@ def do_lookup(self, did: str, dataset_id: int, endpoint: str, user_did_finder: U acc.add(file_info) acc.send_on(did_info.file_count) - except Exception as e: + except Exception: self.logger.error( - f"Error processing DID {did}: {e}", - extra={"dataset_id": dataset_id} + f"Error processing DID {did}", + extra={"dataset_id": dataset_id}, + exc_info=1 ) finally: elapsed_time = int((datetime.now() - start_time).total_seconds())