Skip to content

Commit 25e0ce8

Browse files
author
Robin VAN DE MERGHEL
committed
fix: Typo, add logging in commands
1 parent c0146a7 commit 25e0ce8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Pilot/pilotCommands.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ def wrapper(self):
106106
# unexpected exit: document it and bail out.
107107
self.log.error(str(exc))
108108
self.log.error(traceback.format_exc())
109+
110+
if self.pp.jwt:
111+
# Force flush if it's a remote logger
112+
self.log.buffer.flush(force=True)
113+
else:
114+
self.log.buffer.flush()
109115
raise
110116
finally:
111117
self.log.buffer.cancelTimer()

0 commit comments

Comments
 (0)