Display leftover messages when shutting down. (#62431)
This commit is contained in:
parent
7b3d8431dd
commit
9a43a8fcfc
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue