diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2014-04-14 19:43:22 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2014-04-14 19:43:22 +0200 |
| commit | 94b30dc4764ff735519ff57eff931e6105090a22 (patch) | |
| tree | a006e1844d027caf8fc2135ba2f37ef6dc7f00c2 | |
| parent | 212086f68343f9807ab9928439cb0a3798fb3a8d (diff) | |
debug: dont catch print() on debug mode
| -rwxr-xr-x | py3status/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index 4f7f391..bcc18f1 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -700,8 +700,9 @@ class Py3statusWrapper(): syslog(LOG_INFO, 'events thread started') # suppress modules' ouput wrt issue #20 - sys.stdout = open('/dev/null', 'w') - sys.stderr = open('/dev/null', 'w') + if not self.config['debug']: + sys.stdout = open('/dev/null', 'w') + sys.stderr = open('/dev/null', 'w') # load and spawn modules threads for include_path, f_name in self.list_modules(): |
