summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2014-04-14 19:42:12 +0200
committerUltrabug <ultrabug@gentoo.org>2014-04-14 19:42:12 +0200
commit212086f68343f9807ab9928439cb0a3798fb3a8d (patch)
treeb7eefbcc180498a544eed8e2f8f6cbb6ed2c2d8e
parent2c3396ec56d2b1915904995d9128b454615d5a41 (diff)
debug: add position requested by modules
-rwxr-xr-xpy3status/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py
index 4bad6bd..4f7f391 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -549,7 +549,8 @@ class Module(Thread):
if self.config['debug']:
syslog(
LOG_INFO,
- 'method {} returned {}'.format(meth, result)
+ 'method {} returned {} '.format(meth, result) +
+ 'for position {}'.format(position)
)
except Exception:
err = sys.exc_info()[1]