From 94b30dc4764ff735519ff57eff931e6105090a22 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Mon, 14 Apr 2014 19:43:22 +0200 Subject: debug: dont catch print() on debug mode --- py3status/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'py3status') 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(): -- cgit v1.3