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
Simplify logging #1783
Simplify logging #1783
Conversation
This looks really good, will be very useful I am sure. |
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.
This doesn't work as we send logs to stderr, you need mopidy -vvv 2>&1 | tee mopidy.log
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.
Or, we could create the StreamHandler
with stream=sys.stdout
?
I guess using stderr
for logging and stdout
for console output/interaction, like for mopidy local scan
is the proper way to do it, so we should probably just update the docs.
See #1452 for background and reasoning.