From 470a1f1c5031590823f8a58e641873da76dc1f46 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Wed, 8 Mar 2017 13:32:20 -0600 Subject: [PATCH] lvmdbusd: Add FlightRecorderDump Diagnostic method for dumping flight recorder to syslog. --- daemons/lvmdbusd/manager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemons/lvmdbusd/manager.py b/daemons/lvmdbusd/manager.py index 41bb22ac1..5575e3954 100644 --- a/daemons/lvmdbusd/manager.py +++ b/daemons/lvmdbusd/manager.py @@ -132,6 +132,13 @@ class Manager(AutomatedProperties): r = RequestEntry(-1, Manager._refresh, (), cb, cbe, False) cfg.worker_q.put(r) + @dbus.service.method( + dbus_interface=MANAGER_INTERFACE) + def FlightRecorderDump(self): + """ + Dump the flight recorder to syslog + """ + cfg.blackbox.dump() @dbus.service.method( dbus_interface=MANAGER_INTERFACE, in_signature='s',