Skip to content

Commit

Permalink
Fix error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Jul 5, 2024
1 parent 3b05197 commit 8a072f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/servicex_did_finder_lib/did_finder_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8a072f3

Please sign in to comment.