mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-09 20:55:06 +02:00
Tiny logging clarity improvement (#2985)
This commit is contained in:
@@ -61,11 +61,11 @@ class DanswerLoggingAdapter(logging.LoggerAdapter):
|
|||||||
) -> tuple[str, MutableMapping[str, Any]]:
|
) -> tuple[str, MutableMapping[str, Any]]:
|
||||||
# If this is an indexing job, add the attempt ID to the log message
|
# If this is an indexing job, add the attempt ID to the log message
|
||||||
# This helps filter the logs for this specific indexing
|
# 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()
|
cc_pair_id = IndexAttemptSingleton.get_connector_credential_pair_id()
|
||||||
|
|
||||||
if attempt_id is not None:
|
if index_attempt_id is not None:
|
||||||
msg = f"[Attempt: {attempt_id}] {msg}"
|
msg = f"[Index Attempt: {index_attempt_id}] {msg}"
|
||||||
|
|
||||||
if cc_pair_id is not None:
|
if cc_pair_id is not None:
|
||||||
msg = f"[CC Pair: {cc_pair_id}] {msg}"
|
msg = f"[CC Pair: {cc_pair_id}] {msg}"
|
||||||
|
Reference in New Issue
Block a user