refactor(gateway): session — merge split log-format literals

This commit is contained in:
Teknium
2026-09-02 19:40:01 -07:00
parent 46258d89c5
commit 0f438d9e37
2 changed files with 3 additions and 8 deletions
+1 -2
View File
@@ -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
+2 -6
View File
@@ -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,
)