process: Log stdout tail when process exits with error

This is useful since remote processes we run under ssh end up merging
both remote stdout and sterr into local stdout.

Change-Id: Ibbfb099a667f21641075faa1858e0b9acd706fd2
This commit is contained in:
Pau Espin 2020-05-25 16:45:34 +02:00
parent 6f31de823e
commit 9dbdb623a0
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class Process(log.Origin):
self.log('Terminated', rc=self.result)
else:
self.err('Terminated: ERROR', rc=self.result)
#self.log_stdout_tail()
self.log_stdout_tail()
self.log_stderr_tail()
def log_stdout_tail(self):