Skip to content

Commit

Permalink
fixup! Allow to set the log level via options
Browse files Browse the repository at this point in the history
  • Loading branch information
bebehei committed Jan 30, 2018
1 parent e916e41 commit 839258c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/dunst.pod
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ WM_CLASS). There should be no need to modify this setting for regular use.
Display a notification on startup. This is usually used for debugging and there
shouldn't be any need to use this option.

=item B<verbosity> (values: 'info', 'mesg', 'warn', 'crit', default 'mesg')
=item B<verbosity> (values: 'crit', 'warn', 'mesg', 'info', 'debug' default 'mesg')

Do not display log messages, which have lower precedence than specified
verbosity. This won't affect printing notifications on the terminal. Use
Expand Down
7 changes: 4 additions & 3 deletions dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@

# Manage dunst's desire for talking
# Can be one of the following values:
# info: all unimportant stuff
# mesg: Important Messages
# warn: Only non-fatal warnings
# crit: Critical features. Dunst aborts
# warn: Only non-fatal warnings
# mesg: Important Messages
# info: all unimportant stuff
# debug: all less than unimportant stuff
verbosity = mesg

### Legacy
Expand Down
2 changes: 1 addition & 1 deletion src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void load_settings(char *cmdline_config_path)
char *loglevel = option_get_string(
"global",
"verbosity", "-verbosity", NULL,
"The verbosity to log (one of 'info', 'mesg', 'warn', 'crit')"
"The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')"
);

log_set_level_from_string(loglevel);
Expand Down

0 comments on commit 839258c

Please sign in to comment.