refactor(gateway): session — merge split log-format literals
This commit is contained in:
@@ -321,8 +321,7 @@ class SessionPersistenceMixin:
|
||||
# A non-dict entry (corrupt file) must not abort the whole load.
|
||||
if not isinstance(entry_data, dict):
|
||||
logger.warning(
|
||||
"Skipping invalid session entry %r: "
|
||||
"expected dict, got %s",
|
||||
"Skipping invalid session entry %r: expected dict, got %s",
|
||||
key, type(entry_data).__name__,
|
||||
)
|
||||
continue
|
||||
|
||||
@@ -178,9 +178,7 @@ class SessionTranscriptMixin:
|
||||
spool_dropped_transcript_message(session_id, dropped)
|
||||
except Exception:
|
||||
logger.warning(
|
||||
"pending fallback failed for replaced "
|
||||
"state.db transcript on %s",
|
||||
session_id,
|
||||
"pending fallback failed for replaced state.db transcript on %s", session_id,
|
||||
exc_info=True,
|
||||
)
|
||||
try:
|
||||
@@ -188,9 +186,7 @@ class SessionTranscriptMixin:
|
||||
divert_session_transcript_jsonl(session_id, remaining)
|
||||
except Exception:
|
||||
logger.warning(
|
||||
"JSONL divert failed for replaced state.db "
|
||||
"transcript on %s",
|
||||
session_id,
|
||||
"JSONL divert failed for replaced state.db transcript on %s", session_id,
|
||||
exc_info=True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user