diff --git a/supervisor_stdout.py b/supervisor_stdout.py index 2092d86..0a1cb20 100644 --- a/supervisor_stdout.py +++ b/supervisor_stdout.py @@ -21,7 +21,7 @@ def event_handler(event, response): response = response.decode() line, data = response.split('\n', 1) headers = dict([ x.split(':') for x in line.split() ]) - lines = data.split('\n') + lines = data.splitlines() prefix = '%s %s | '%(headers['processname'], headers['channel']) print('\n'.join([ prefix + l for l in lines ]))