Skip to content

feat: Do not emit info logs by default#2239

Merged
jodal merged 6 commits into
mopidy:mainfrom
jodal:logging
Feb 9, 2026
Merged

feat: Do not emit info logs by default#2239
jodal merged 6 commits into
mopidy:mainfrom
jodal:logging

Conversation

@jodal
Copy link
Copy Markdown
Member

@jodal jodal commented Feb 9, 2026

Previously, we logged on info level by default, except for the config and deps commands, which only logged on warning level to make them work better as short-running CLI commands instead of long-running processes.

Now, logging works the same for all commands: We log on warning level by default. Pass -v or --verbose to log on info level. This makes all commands, from both core and extensions, work consistently and unsurprisingly.

The systemd service file we ship has been adjusted to reenable info level logging when running as a systemd service, as that behavior still makes the most sense for long-running processes.

jodal added 6 commits February 9, 2026 21:58
Use `-v` to get info level logs, and `-vv` to get debug level logs.
This reverts behavior to approximately the same as the old default when
running as a systemd service.
Instead of making up our own DelayedHandler.
It is entirely normal to have a system-wide config file that cannot be
read by regular users, so we shouldn't log this on warning level.
@jodal jodal merged commit 9634d70 into mopidy:main Feb 9, 2026
9 of 10 checks passed
@jodal jodal deleted the logging branch February 9, 2026 21:15
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.

1 participant