Summary
I was trying to debug a docker_image hook execution and was delighted to note the --log-file option.
However, turns out that the "Executing" TRACE run lines are truncated with [...] before showing the part I'm actually interested in (a case of tweaking entrypoints and arguments).
I'd suggest not truncating these lines in the trace log at all, or providing an option not to truncate.
Willing to submit a PR?
Platform
Ubuntu 25.10 amd64
Version
0.3.2
.pre-commit-config.yaml
N/A
Log file
2026-02-20T10:17:47.223740Z TRACE run{hook_id=... language=docker_image}: Executing `cd ... && docker run --rm --tty --user 1000:1000 --init --volume ...:/src:rw,Z --workdir /src --entrypoint ... --network [...]`
Summary
I was trying to debug a docker_image hook execution and was delighted to note the --log-file option.
However, turns out that the "Executing" TRACE run lines are truncated with
[...]before showing the part I'm actually interested in (a case of tweaking entrypoints and arguments).I'd suggest not truncating these lines in the trace log at all, or providing an option not to truncate.
Willing to submit a PR?
Platform
Ubuntu 25.10 amd64
Version
0.3.2
.pre-commit-config.yaml
N/A
Log file