Open A6GibKm opened 1 year ago
I haven't dug too much into this.
So far, my suspicion is that podman start
logs everything being sent to the standard error stream as an error. Toolbx does use the standard error stream for all its verbose output. It has done so since the very early days of the POSIX shell implementation, and is also the default for logrus that the Go implementation uses today.
Whatever we do here, we should probably take care not to break podman logs
, and the ability to see the logs in the terminal with podman start --attach ...
or toolbox --verbose ..
. Those are really useful for when hacking and debugging Toolbx.
So far, my suspicion is that
podman start
logs everything being sent to the standard error stream as an error. Toolbx does use the standard error stream for all its verbose output.
Ah! That might be it! Then the solution to this could be fairly straightforward by setting the logging output to stdout
when Toolbx is being used as the entry-point.
This is the relevant Podman bug: https://github.com/containers/podman/issues/20728
I think we should switch logrus to use the standard output stream for all verbose output and only use the standard error stream for actual errors.
Doing
journalctl -e -p err
will returnand others.