This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
Fix STDOUT and STDERR direction based on Log.* calls #2592
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2587
It's a big issue.
create
, for instance, logs everything to STDERR rather than STDOUT in v0.5.3 today. You can easily verify this with a shell function like this:Since we're not using the Bugsnag hook for logrus at all, my feeling is that we should just remove the use of logrus altogether (I can't see any particular advantages) and use only fmt logger. That's what I've implemented here. AFAICT there's no way to get
logrus
to change which stream it logs to based on logging levels. I can followup PR to remove the vendored code for this.During standup we need to discuss whether we feel like this merits a 0.5.4 release ASAP. In my opinion it does, since the accidental regression is so large in scope, and could potentially affect a lot of downstream users and/or existing scripts for Docker Machine.
The bundled tests are a step in the right direction to ensure something like this doesn't happen again in the future. More would be better, of course.
cc @dgageot @jeanlaurent
Signed-off-by: Nathan LeClaire nathan.leclaire@gmail.com