-
Notifications
You must be signed in to change notification settings - Fork 215
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
Logging to stdout instead of stderr #476
Comments
Interesting 🤔 Already in v1.4.0, the log output was set to Stdout: https://github.com/flashbots/mev-boost/blob/v1.4.0/cli/main.go#L74 Not sure how that went to stderr in your case before... might it have been an even earlier mev-boost version? |
I still had the .gz of the 1.4.0 on the hdd, so I extracted it on another computer and tested it. I can confirm that it was writing on stderr: Redirecting stdout to nul:
redirecting stderr to nul
(no output is visible) |
I just took a closer look, and you are right -- v1.4.0 did log to stderr, even though there was code to set it to stdout. But this code set it for logrus in general but not the specific instance! This change in log output to stdout was introduced in #401 - released in v1.5.0 The intention was to already log to stdout before, and this PR was meant to fix it. |
I've noticed that with the newer version (1.5.0), at least under Windows, the logging happens on stdout. In the previous version (1.4.0) it was on stderr (I was redirecting the stderr to a file, and when installing the new version, nothing was being written).
Question: do you write everything to stdout now, both info, warns and errors, or should I save both stdout AND stderr?
The text was updated successfully, but these errors were encountered: