Display leftover messages when shutting down. (#62431)

pull/62605/head
Nathaniel Case 5 years ago committed by GitHub
parent 7b3d8431dd
commit 9a43a8fcfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -196,6 +196,9 @@ class ConnectionProcess(object):
self.sock.close()
if self.connection:
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:
pass
finally:

Loading…
Cancel
Save