mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
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 f1684bf8e8
)
This commit is contained in:
parent
219ba4f54a
commit
cc59cb1abc
@ -67,7 +67,7 @@ class LvmFlightRecorder(object):
|
|||||||
with cmd_lock:
|
with cmd_lock:
|
||||||
if len(self.queue):
|
if len(self.queue):
|
||||||
log_error("LVM dbus flight recorder START")
|
log_error("LVM dbus flight recorder START")
|
||||||
for c in self.queue:
|
for c in reversed(self.queue):
|
||||||
log_error(str(c))
|
log_error(str(c))
|
||||||
log_error("LVM dbus flight recorder END")
|
log_error("LVM dbus flight recorder END")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user