We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87632a7 commit d5af4c5Copy full SHA for d5af4c5
supervisor_stdout.py
@@ -20,7 +20,7 @@ def main():
20
def event_handler(event, response):
21
line, data = response.split('\n', 1)
22
headers = dict([ x.split(':') for x in line.split() ])
23
- lines = data.split('\n')
+ lines = [l for l in data.split('\n') if l not in ['', '\n']]
24
prefix = '%s %s | '%(headers['processname'], headers['channel'])
25
print('\n'.join([ prefix + l for l in lines ]))
26
0 commit comments