Skip to content

Commit 2a9dba3

Browse files
committed
Tiny logging clarity improvement
1 parent 75dd103 commit 2a9dba3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/danswer/utils/logger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def process(
6161
) -> tuple[str, MutableMapping[str, Any]]:
6262
# If this is an indexing job, add the attempt ID to the log message
6363
# This helps filter the logs for this specific indexing
64-
attempt_id = IndexAttemptSingleton.get_index_attempt_id()
64+
index_attempt_id = IndexAttemptSingleton.get_index_attempt_id()
6565
cc_pair_id = IndexAttemptSingleton.get_connector_credential_pair_id()
6666

67-
if attempt_id is not None:
68-
msg = f"[Attempt: {attempt_id}] {msg}"
67+
if index_attempt_id is not None:
68+
msg = f"[Index Attempt: {index_attempt_id}] {msg}"
6969

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

0 commit comments

Comments
 (0)