From 1640a90a632ebe74a06602adc60fa8f1508fd7e5 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 11 Apr 2021 18:50:15 +0200 Subject: feature: add a /debug command to change logging level dynamically And changing the path too --- poezio/core/command_defs.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'poezio/core/command_defs.py') 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].", + }, ] -- cgit v1.2.3