Skip to content

Commit b83e516

Browse files
fix: use lazy % formatting for logger.debug to pass ruff G004
Changes f-string to % formatting in logger.debug() call to avoid evaluating the string when debug logging is disabled.
1 parent 7273f27 commit b83e516

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

codeflash/languages/javascript/support.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,10 @@ def parse_test_results(self, junit_xml_path: Path, stdout: str) -> list[TestResu
15681568
if timing_value > 0:
15691569
runtime_ns = timing_value
15701570
logger.debug(
1571-
f"Using console timing for {name}: {timing_value}ns (XML had {runtime_ns_xml}ns)"
1571+
"Using console timing for %s: %sns (XML had %sns)",
1572+
name,
1573+
timing_value,
1574+
runtime_ns_xml,
15721575
)
15731576
break
15741577

0 commit comments

Comments
 (0)