Skip to content

Commit d5af4c5

Browse files
committed
https://github.com/coderanger/supervisor-stdout/pull/11
1 parent 87632a7 commit d5af4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor_stdout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def main():
2020
def event_handler(event, response):
2121
line, data = response.split('\n', 1)
2222
headers = dict([ x.split(':') for x in line.split() ])
23-
lines = data.split('\n')
23+
lines = [l for l in data.split('\n') if l not in ['', '\n']]
2424
prefix = '%s %s | '%(headers['processname'], headers['channel'])
2525
print('\n'.join([ prefix + l for l in lines ]))
2626

0 commit comments

Comments
 (0)