Skip to content

Commit

Permalink
Tiny logging clarity improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Oct 29, 2024
1 parent 75dd103 commit 2a9dba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/danswer/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def process(
) -> tuple[str, MutableMapping[str, Any]]:
# If this is an indexing job, add the attempt ID to the log message
# This helps filter the logs for this specific indexing
attempt_id = IndexAttemptSingleton.get_index_attempt_id()
index_attempt_id = IndexAttemptSingleton.get_index_attempt_id()
cc_pair_id = IndexAttemptSingleton.get_connector_credential_pair_id()

if attempt_id is not None:
msg = f"[Attempt: {attempt_id}] {msg}"
if index_attempt_id is not None:
msg = f"[Index Attempt: {index_attempt_id}] {msg}"

if cc_pair_id is not None:
msg = f"[CC Pair: {cc_pair_id}] {msg}"
Expand Down

0 comments on commit 2a9dba3

Please sign in to comment.