From cc59cb1abc24d2d88371eaee69ad28a0028419c4 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Tue, 11 Dec 2018 13:58:23 -0600 Subject: [PATCH] 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. (cherry picked from commit f1684bf8e89b87d7f04e0a963def66f76634766d) --- daemons/lvmdbusd/cmdhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py index 4fb1670a9..a9177c5ff 100644 --- a/daemons/lvmdbusd/cmdhandler.py +++ b/daemons/lvmdbusd/cmdhandler.py @@ -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")