From 5d8b48a2ed82f831cd4a9a04d5e3094c88b30081 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 9 Feb 2018 16:32:59 +0100 Subject: [PATCH] Show where a command handler is defined --- qutebrowser/commands/cmdutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/commands/cmdutils.py b/qutebrowser/commands/cmdutils.py index d261e5e86..f9ce91b8f 100644 --- a/qutebrowser/commands/cmdutils.py +++ b/qutebrowser/commands/cmdutils.py @@ -105,7 +105,8 @@ class register: # noqa: N801,N806 pylint: disable=invalid-name else: assert isinstance(self._name, str), self._name name = self._name - log.commands.vdebug("Registering command {}".format(name)) + log.commands.vdebug("Registering command {} (from {}:{})".format( + name, func.__module__, func.__qualname__)) if name in cmd_dict: raise ValueError("{} is already registered!".format(name)) cmd = command.Command(name=name, instance=self._instance,