From 8ca98da6c407240068afae6652486fb336b8c100 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 19 Jan 2014 18:43:34 +0100 Subject: [PATCH] commands: Add debug output when command is called --- qutebrowser/commands/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qutebrowser/commands/utils.py b/qutebrowser/commands/utils.py index 29eb5e121..e3fb4ea34 100644 --- a/qutebrowser/commands/utils.py +++ b/qutebrowser/commands/utils.py @@ -1,5 +1,7 @@ +import inspect +import sys +import logging from PyQt5.QtCore import QObject, pyqtSignal -import inspect, sys cmd_dict = {} @@ -53,6 +55,8 @@ class Command(QObject): raise TypeError("Invalid argument count!") def run(self, argv=None): + logging.debug("Cmd called: {}({})".format(self.__class__.__name__, + ", ".join(argv) if argv else '')) if not self.signal: raise NotImplementedError # some sane defaults