-
Notifications
You must be signed in to change notification settings - Fork 137
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
[Bug] daemon version warning is written to stdout, not stderr #562
Comments
Thinking about it, all logs should probably be sent to stderr and the same should probably be true for |
Hard to say. Generally speaking, 'out of band' information should go to stderr. When I run |
Ah yep. By logs I meant all of the stuff that's printed when
|
The linked MR sends all log output to I'm not sure about the error-level "version incompatiblity" message though. It feels more like a warning, but the default log level is |
Yes, that's a warning level message. What other warning-level log output could the client produce? I'd review that and bump the level to warning if there isn't too much else that'd show up. |
Describe the bug
When client and daemon versions differ, all output except for JSON output is prepended with
This message is written to stdout, which means it can't easily be filtered out.
Steps to reproduce
Run the daemon as version 3.4.0, then use client version 3.4.1 and use
--print-task-id
to only get the task ID to be output:The expected output would be
1
, withDifferent daemon version detected '3.4.0'. Consider restarting the daemon.
having been redirected to /dev/null.Debug logs (if relevant)
No response
Operating system
Debian 10
Pueue version
3.4.0 (daemon) and 3.4.1 (client)
Additional context
At the very least, the message should be written to stderr. Ideally, it should be possible to disable it altogether (
pueue --no-warnings add ...
).The text was updated successfully, but these errors were encountered: