diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-11 18:50:15 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-11 18:50:31 +0200 |
commit | 1640a90a632ebe74a06602adc60fa8f1508fd7e5 (patch) | |
tree | 91a93cb99ba9be6f7783ea6e9122186dfe1ad4ed /poezio/core/command_defs.py | |
parent | 57cd999f7081d94fb1c623665e016576725b5353 (diff) | |
download | poezio-1640a90a632ebe74a06602adc60fa8f1508fd7e5.tar.gz poezio-1640a90a632ebe74a06602adc60fa8f1508fd7e5.tar.bz2 poezio-1640a90a632ebe74a06602adc60fa8f1508fd7e5.tar.xz poezio-1640a90a632ebe74a06602adc60fa8f1508fd7e5.zip |
feature: add a /debug command to change logging level dynamically
And changing the path too
Diffstat (limited to 'poezio/core/command_defs.py')
-rw-r--r-- | poezio/core/command_defs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/poezio/core/command_defs.py b/poezio/core/command_defs.py index 28bb053c..770b3492 100644 --- a/poezio/core/command_defs.py +++ b/poezio/core/command_defs.py @@ -442,4 +442,11 @@ def get_commands(commands: CommandCore, completions: CompletionCore, plugin_mana "shortdesc": "Reload the config. You can achieve the same by " "sending SIGUSR1 to poezio.", }, + { + "name": "debug", + "func": commands.debug, + "usage": "[debug_filename]", + "shortdesc": "Enable or disable debug logging according to the " + "presence of [debug_filename].", + }, ] |