diff --git a/supervisor_stdout.py b/supervisor_stdout.py index b1ae219..440afec 100644 --- a/supervisor_stdout.py +++ b/supervisor_stdout.py @@ -19,7 +19,7 @@ def main(): def event_handler(event, response): line, data = response.split('\n', 1) headers = dict([ x.split(':') for x in line.split() ]) - lines = data.split('\n') + lines = [ l for l in data.split('\n') if l not in ['', '\n'] ] prefix = '%s %s | '%(headers['processname'], headers['channel']) print '\n'.join([ prefix + l for l in lines ])