-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/podman: Print stderr of execs to system stderr when asked for #823
pkg/podman: Print stderr of execs to system stderr when asked for #823
Conversation
Build failed.
|
Without this the logs of Podman (resp. stderr of Podman invocations) are shown only in chosen parts when the debug logs are requested. containers#823
042a4c0
to
fcbc296
Compare
The logic for determining if a spinner can be started is non-trivial and hard to replicate. containers#826
With this the logs (resp. stderr) of all invocations of Podman are shown when the '--log-podman' option is set. This change affects the behaviour of spinner which is now hidden when the logging is turned on. containers#823
fcbc296
to
28d97af
Compare
Build failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice trick with io.MultiWriter
!
Sadly, this will won't unbreak the progress bar from podman pull
when run as toolbox --verbose
because the standard error stream won't be connected to a file descriptor that's a terminal device. We should mention that in the commit message.
Let's fold this into #787 |
This way the standard error stream of the spawned binaries can be inspected to get a better understanding of the failure, while still being shown to the user when run with the '--verbose' flag. Unfortunately, this breaks the progress bar in 'podman pull' because the standard error stream is no longer connected to a file descriptor that's a terminal device. containers#787 containers#823
This way the standard error stream of the spawned binaries can be inspected to get a better understanding of the failure, while still being shown to the user when run with the '--verbose' flag. Unfortunately, this breaks the progress bar in 'podman pull' because the standard error stream is no longer connected to a file descriptor that's a terminal device. containers#689 containers#787 containers#823
With this the logs (resp. stderr) of all invocations of Podman are shown
when the '--log-podman' option is set.
This change affects the behaviour of spinner which is now hidden when
the logging is turned on.
Depends on #826