Commit c90be88
committed
env_run: fold argv into result logs, drop pre-run debug line
The pre-run `logger.debug("env-run: %s", argv)` was redundant on the
success path (every successful call produced two debug lines for the
same command). Move the argv into the post-run logs so each run
produces exactly one log line, with the full command alongside the
captured streams.
The pre-run log's only unique value was surviving the
`check=True → CalledProcessError` path, but `CalledProcessError`
already carries `cmd`, `returncode`, `stdout`, and `stderr`, so any
caller that handles the exception has access to the same information.1 parent c54bdfb commit c90be88
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
0 commit comments