Commit 08d4f79
committed
libtmux(fix[logging]): move cmd_str inside isEnabledFor guard
why: shlex.join() was computed on every fetch_objs call regardless of
log level. Per AGENTS.md, expensive computations for log extra values
should be guarded with isEnabledFor.
what:
- Move cmd_str = shlex.join(...) inside first isEnabledFor(DEBUG) block
- Lazily compute in second block if DEBUG was enabled between the two1 parent 1cc1adf commit 08d4f79
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| |||
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
| |||
0 commit comments