From 640b28caec1471b9b58291680f25f55fbe5ebfeb 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 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..cfb06ec 100644 --- a/src/servicex_did_finder_lib/did_finder_app.py +++ b/src/servicex_did_finder_lib/did_finder_app.py @@ -102,8 +102,9 @@ def do_lookup(self, did: str, dataset_id: int, endpoint: str, user_did_finder: U acc.send_on(did_info.file_count) except Exception as e: 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())