Skip to content
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

librespot as a systemd service - less chatty by default #141

Closed
arigit opened this issue Jan 5, 2017 · 2 comments
Closed

librespot as a systemd service - less chatty by default #141

arigit opened this issue Jan 5, 2017 · 2 comments

Comments

@arigit
Copy link

arigit commented Jan 5, 2017

Using librespot as systemd service, with the default recommended options (herrernst binary for raspberry)
Very quickly the journal fills up with librespot output such as

librespot::audio_file2: Got channel 30
....

This can be fixed in the systemd service definition by adding

/dev/null 2>&1 &

However this mutes all output; and since librespot is mature, wouldn't it make sense for it to by less chatty by default - just output the key messages important to the log such as
started
authenticated
started playing
stopped playing

and activate all the current "debug" info (chunk downloads, volume changes etc) only when passed a --verbose command line option

@herrernst
Copy link
Contributor

You can reduce log level by setting RUST_LOG environment variable to the desired level: https://doc.rust-lang.org/log/env_logger/
I recommend adding this line in the [Service] section of the systemd unit:
Environment="RUST_LOG=info"

@plietar plietar closed this as completed in 7ba3d76 Jan 5, 2017
@plietar
Copy link
Owner

plietar commented Jan 5, 2017

Agreed, that was too verbose. Thanks for opening the issue.
I've changed the default level to info, with a --verbose argument to switch to trace.
The RUST_LOG environment variable still can still be used as well.

mjaggard pushed a commit to mjaggard/librespot that referenced this issue Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants