Display leftover messages when shutting down. (#62431)

This commit is contained in:
Nathaniel Case 2019-09-19 10:37:14 -04:00 committed by GitHub
parent 7b3d8431dd
commit 9a43a8fcfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,9 @@ class ConnectionProcess(object):
self.sock.close() self.sock.close()
if self.connection: if self.connection:
self.connection.close() self.connection.close()
if self.connection.get_option("persistent_log_messages"):
for _level, message in self.connection.pop_messages():
display.display(message, log_only=True)
except Exception: except Exception:
pass pass
finally: finally: