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.pyAdded is_debug_enabled() guards around debug() calls (6-line change)cli.pyAdded is_debug_enabled() guards around debug() calls (6-line change)base.pyAdded is_debug_enabled() guard (3-line change)engine.pyAdded is_debug_enabled() guards (18-line change)client.pyAdded is_debug_enabled() guards (19-line change)state.pyAdded is_debug_enabled() guard (3-line change)logic.pyAdded 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.pycli.pybase.pyengine.pyclient.pystate.pylogic.py