Commit 0b6235b
committed
tmux_cmd(fix[logging]): Fix logging convention violations
why: f-string in logger.exception and .format() in post-exec log defeat lazy
formatting; shlex.join(cmd) was computed twice redundantly.
what:
- Compute shlex.join(cmd) once into cmd_str variable
- Replace f-string in logger.exception with lazy formatting + extra
- Replace .format() post-exec log with lazy formatting + structured extra
- Guard post-exec debug log with logger.isEnabledFor(logging.DEBUG)1 parent be2ed09 commit 0b6235b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
266 | | - | |
| 266 | + | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
0 commit comments