summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/notificationmanager.cpp2
-rw-r--r--daemon/notificationmanager.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/daemon/notificationmanager.cpp b/daemon/notificationmanager.cpp
index 8a2129e..8524083 100644
--- a/daemon/notificationmanager.cpp
+++ b/daemon/notificationmanager.cpp
@@ -93,7 +93,7 @@ void NotificationManager::Notify(const QString &app_name, uint replaces_id, cons
return;
}
- qDebug() << "Got notification via dbus from" << detectCleanAppname(app_name);
+ logger()->debug() << Q_FUNC_INFO << "Got notification via dbus from" << detectCleanAppname(app_name);
if (app_name == "messageserver5") {
emit this->emailNotify(hints.value("x-nemo-preview-summary", detectCleanAppname(app_name)).toString(),
diff --git a/daemon/notificationmanager.h b/daemon/notificationmanager.h
index dd3f8bb..45ae090 100644
--- a/daemon/notificationmanager.h
+++ b/daemon/notificationmanager.h
@@ -2,6 +2,7 @@
#define NOTIFICATIONMANAGER_H
#include <QObject>
+#include "Logger"
#include <QDBusInterface>
#include <QDBusPendingCallWatcher>
@@ -9,6 +10,7 @@
class NotificationManager : public QObject
{
Q_OBJECT
+ LOG4QT_DECLARE_QCLASS_LOGGER
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Notifications")
Q_PROPERTY(QDBusInterface* interface READ interface)