Persistent daemon log level#613
Open
jrauh01 wants to merge 6 commits into
Open
Conversation
5f4ad3f to
344d8aa
Compare
lippserd
approved these changes
Mar 26, 2026
If the RPC call to set the daemon log level resolves, the log level is stored in the database to preserve it when restarting the daemon.
When starting the daemon the log level is read from the database and applied to the logger. Terminal flags like `--verbose` and `--debug` have a higher precedence and the database configuration will **not** be applied if one of them is passed to the daemon run command.
It's not necessary or advantageous to split the content in two methods.
344d8aa to
5abf677
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Till now the daemon log level could be set in Icinga Web, but it was not persisted anywhere.
Changes
The chosen value in the Icinga Web form will now be persisted to the database. The daemon queries the database on startup and applies it to the logger under following conditions:
--verboseor--debug).Additionally some minor code improvements have been done.