diff options
Diffstat (limited to 'py3status/__init__.py')
| -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(): |
