Let user change log level while running

`/log level INFO|DEBUG|WARN|ERROR` is now available.
Looks like this solves a TODO (see removed comment in source) from 2013
:-)

Works only with default log file. Not with user provided log file during
start up via the -f parameter.

Fix https://github.com/profanity-im/profanity/issues/1627
This commit is contained in:
Michael Vetter
2022-06-22 12:39:44 +02:00
parent 6147a1342d
commit 3f26dd6be9
3 changed files with 17 additions and 4 deletions

View File

@@ -391,6 +391,7 @@ cmd_ac_init(void)
autocomplete_add(log_ac, "rotate");
autocomplete_add(log_ac, "shared");
autocomplete_add(log_ac, "where");
autocomplete_add(log_ac, "level");
autoaway_ac = autocomplete_new();
autocomplete_add(autoaway_ac, "mode");