diff options
author | Tony Asleson <tasleson@redhat.com> | 2018-12-11 13:58:23 -0600 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2018-12-17 16:11:14 +0100 |
commit | cc59cb1abc24d2d88371eaee69ad28a0028419c4 (patch) | |
tree | 45032efede3cbb8ac6af6752c10738872234608b | |
parent | 219ba4f54a462c175f5e9acaa0558afac94d5ff7 (diff) | |
download | lvm2-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.py | 2 |
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") |