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

refactor: report name of selem that cannot be found #437

Merged
merged 4 commits into from
Nov 28, 2019

Conversation

pfrenssen
Copy link
Contributor

@pfrenssen pfrenssen commented Nov 25, 2019

If a user's volume control is not correctly configured the following (unhelpful) warning is logged:

Couldn't set volume: "Couldn't find selem."

It does not say which selem cannot be found. Let's output this information to help users debug their configuration files.

In my case this PR helped me discover that it was using PCM as the name of the selem instead of alsa. This led me to #283 which solved my problem.

@pfrenssen
Copy link
Contributor Author

Build is now green for the newly added code but failing due to a new lint that is added to clippy. This also affects the master branch so I split this off to a separate PR: #438

@mainrs
Copy link
Member

mainrs commented Nov 27, 2019

Wow, thanks! I'll try to spare some time off later on in the evening and merge all PRs that are easy to do. Thanks again for your contribution!

@mainrs mainrs self-assigned this Nov 27, 2019
@pfrenssen
Copy link
Contributor Author

Thanks! This should hopefully turn green once #438 is in and merged here.

@mainrs mainrs changed the title Report the name of a selem that can not be found refactor: report name of selem that cannot be found Nov 28, 2019
@mainrs mainrs merged commit 1f4cddf into Spotifyd:master Nov 28, 2019
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

Successfully merging this pull request may close these issues.

2 participants