Skip to content

Commit

Permalink
fix(ingest): log exception properly (#12372)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Jan 17, 2025
1 parent 05ed277 commit 4de7f61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/run/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ def on_failure(
failure_metadata: dict,
) -> None:
logger.error(
f"{self.name} failed to write record with workunit {record_envelope.metadata['workunit_id']}"
f" with {failure_exception} and info {failure_metadata}"
f"{self.name} failed to write record with workunit {record_envelope.metadata['workunit_id']}",
extra={"failure_metadata": failure_metadata},
exc_info=failure_exception,
)


Expand Down

0 comments on commit 4de7f61

Please sign in to comment.