diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2014-10-20 16:12:08 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2014-10-20 16:12:08 +0200 |
| commit | 3e9436e5d0fbbc7bcd5aa10d86420e307390aa25 (patch) | |
| tree | 53eee963b2da3366095a11a5a59da64144a483f6 /lockscreen | |
| parent | 8fd34eee5260606d983ed451e6bf90e3458b69a1 (diff) | |
Add a log in case we cannot inhibit the shutdown.
(bzr r3874.1.5)
Diffstat (limited to 'lockscreen')
| -rw-r--r-- | lockscreen/ShutdownNotifier.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lockscreen/ShutdownNotifier.cpp b/lockscreen/ShutdownNotifier.cpp index c38bf9084..05c550602 100644 --- a/lockscreen/ShutdownNotifier.cpp +++ b/lockscreen/ShutdownNotifier.cpp @@ -18,6 +18,7 @@ #include "ShutdownNotifier.h" +#include <NuxCore/Logger.h> #include "UnityCore/GLibDBusProxy.h" namespace unity @@ -25,6 +26,8 @@ namespace unity namespace lockscreen { +DECLARE_LOGGER(logger, "unity.lockscreen.shutdownnotifier"); + // // Private Implementation // @@ -67,7 +70,7 @@ bool ShutdownNotifier::Impl::RegisterInterest(ShutdownCallback const& cb) logind_proxy_->CallWithUnixFdList("Inhibit", g_variant_new("(ssss)", "shutdown", "Unity Lockscreen", "Screen is locked", "delay"), [this](GVariant* variant, glib::Error const& e){ - // FIXME: we should handle the error. + LOG_ERROR(logger) << "Failed to inhbit shutdow"; delay_inhibit_fd_ = glib::Variant(variant).GetInt32(); }); |
