tofusoup 2026-03-20
Guard f-string debug calls with is_debug_enabled checks
7 files · 40+ · 21-

Guard f-string debug calls with is_debug_enabled

7 files changed
  • cli.py Added is_debug_enabled() guards around debug() calls (6-line change)
  • cli.py Added is_debug_enabled() guards around debug() calls (6-line change)
  • base.py Added is_debug_enabled() guard (3-line change)
  • engine.py Added is_debug_enabled() guards (18-line change)
  • client.py Added is_debug_enabled() guards (19-line change)
  • state.py Added is_debug_enabled() guard (3-line change)
  • logic.py Added is_debug_enabled() guard (6-line change)
  • Wrapped debug() log calls with is_debug_enabled() guards in cli.py, hcl/cli.py, registry/base.py, registry/search/engine.py, rpc/client.py, state.py, and testing/logic.py to prevent f-string interpolation overhead when debug logging is inactive streamline behavioral
    7 files
    • cli.py
    • cli.py
    • base.py
    • engine.py
    • client.py
    • state.py
    • logic.py