Skip to contentSkip to conversation

master - lvmdbusd: Dump blackbox newest first

PATCH Tony Asleson 1 participant 1 message Dec 14, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f1684bf8e89b87d7f04e0a963def66f76634766d
Commit:        f1684bf8e89b87d7f04e0a963def66f76634766d
Parent:        859feb81e5b61ac2109b1d7850844ccf1ce3e5bf
Author:        Tony Asleson <[email protected]>
AuthorDate:    Tue Dec 11 13:58:23 2018 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Fri Dec 14 08:28:02 2018 -0600

lvmdbusd: Dump blackbox newest first

When we get bug reports we may not get the entire log, so lets dump the fight recorder from newest to oldest as the one we are interested in was likely to be the last command run.

---
 daemons/lvmdbusd/cmdhandler.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmdbusd/cmdhandler.py +1 -1
index 4fb1670..a9177c5 100644
@@ -67,7 +67,7 @@ class LvmFlightRecorder(object):
 		with cmd_lock:
 			if len(self.queue):
 				log_error("LVM dbus flight recorder START")
-				for c in self.queue:
+				for c in reversed(self.queue):
 					log_error(str(c))
 				log_error("LVM dbus flight recorder END")