Improve logging in eventFilter

This commit is contained in:
Florian Bruhin 2014-04-25 09:22:01 +02:00
parent 8cba290dae
commit c4be264c44

View File

@ -190,12 +190,12 @@ class ModeManager(QObject):
if not isinstance(obj, QWindow):
# We already handled this same event at some point earlier, so
# we're not interested in it anymore.
logging.debug("Got event {} for {} -> ignoring".format(
logging.debug("Ignoring event {} for {}".format(
debug.EVENTS[typ], obj.__class__.__name__))
return False
logging.debug("Got event {} for {}".format(
debug.EVENTS[typ], obj.__class__.__name__))
logging.debug("Got event {} for {} in mode {}".format(
debug.EVENTS[typ], obj.__class__.__name__, self.mode))
handler = self._handlers[self.mode]