Commit b3e75d1
committed
tmux_cmd(fix[logging]): guard pre-execution log with isEnabledFor
why: shlex.join(cmd) was computed unconditionally outside the
isEnabledFor guard, wasting cycles when DEBUG is disabled.
what:
- Move cmd_str = shlex.join(cmd) inside the if logger.isEnabledFor block
- Matches the post-execution logging pattern at line 3071 parent 9d8ec2e commit b3e75d1
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
0 commit comments