summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Andreas <github@smurfy.de>2014-07-12 09:45:33 +0200
committerPhilipp Andreas <github@smurfy.de>2014-07-12 09:45:33 +0200
commitb8e1190847ff8cad9276bc1bc751aef454a713d4 (patch)
tree2e9ba28e2fb6a1955ed78da462eb5acc40867eab
parent2101baf2911d7965c86e5308e4d8350790a6956c (diff)
Using log4qt logging instead of qDebug()
-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)