Skip to content

Commit b8ca494

Browse files
SkylarKeltyclaude
andcommitted
Use lazy %-formatting in logger calls instead of f-strings
Avoids eagerly formatting log messages when the log level is disabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a388b5a commit b8ca494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

artemis/researcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _parse_query_list(raw_content: str) -> list[str]:
8484
if normalized not in queries:
8585
queries.append(normalized)
8686
if not queries:
87-
logger.warning(f"Query list empty after parsing: {raw_content[:200]}")
87+
logger.warning("Query list empty after parsing: %s", raw_content[:200])
8888
# Return fallback queries
8989
return ["research topic analysis"]
9090
return queries
@@ -122,7 +122,7 @@ def _try_salvage_truncated_array(fragment: str) -> list[str]:
122122

123123
def _parse_outline(raw_content: str) -> list[dict[str, str]]:
124124
"""Parse LLM response into a research outline."""
125-
logger.debug(f"LLM outline response: {raw_content[:500]}")
125+
logger.debug("LLM outline response: %s", raw_content[:500])
126126
candidate = raw_content.strip()
127127
if candidate.startswith("```"):
128128
candidate = candidate.strip("`")

0 commit comments

Comments
 (0)