From b377a93e49fe7d49c89deecf9fbbf9fa39f67990 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 20 Jan 2019 07:34:27 +0100 Subject: [PATCH] [core] Add debug output for partial bar update see #353 --- bumblebee/engine.py | 2 ++ bumblebee/input.py | 1 + 2 files changed, 3 insertions(+) diff --git a/bumblebee/engine.py b/bumblebee/engine.py index fb6a7d3..f441269 100644 --- a/bumblebee/engine.py +++ b/bumblebee/engine.py @@ -269,8 +269,10 @@ class Engine(object): interval = float(self._config.get("interval", 1)) while self.running(): if event and time.time() - last_full < interval: + log.debug("partial output update ({} {} {})".format(event, time.time(), last_full)) self.patch_output(event) else: + log.debug("full update: {} {} ({})".format(time.time(), last_full, time.time() - last_full)) last_full = time.time() self.write_output() if self.running(): diff --git a/bumblebee/input.py b/bumblebee/input.py index 9b760bc..77c0693 100644 --- a/bumblebee/input.py +++ b/bumblebee/input.py @@ -90,6 +90,7 @@ class I3BarInput(object): def wait(self, timeout): self._condition.wait(timeout) rv = self.event if self.has_event else None + log.debug("received input event: {}".format(rv)) self.has_event = False return rv