summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2018-12-11 13:58:23 -0600
committerMarian Csontos <mcsontos@redhat.com>2018-12-17 16:11:14 +0100
commitcc59cb1abc24d2d88371eaee69ad28a0028419c4 (patch)
tree45032efede3cbb8ac6af6752c10738872234608b
parent219ba4f54a462c175f5e9acaa0558afac94d5ff7 (diff)
downloadlvm2-cc59cb1abc24d2d88371eaee69ad28a0028419c4.tar.gz
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)
-rw-r--r--daemons/lvmdbusd/cmdhandler.py2
1 files changed, 1 insertions, 1 deletions
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")