diff --git a/src/core/log.h b/src/core/log.h index 6e66321..dd4b31f 100644 --- a/src/core/log.h +++ b/src/core/log.h @@ -53,5 +53,4 @@ private: #define SNORE_DEBUG 3 #define SNORE_INFO 2 #define SNORE_WARNING 1 -#define SNORE_LOG 0 #endif // LOG_H diff --git a/src/core/plugins/snorebackend.cpp b/src/core/plugins/snorebackend.cpp index 773b43f..46181c1 100644 --- a/src/core/plugins/snorebackend.cpp +++ b/src/core/plugins/snorebackend.cpp @@ -79,7 +79,7 @@ void SnoreBackend::closeNotification(Notification n, NotificationEnums::CloseRea { if(!n.isValid()) { - qWarning() << "Closing a notification a second time, this should not heappen"; + snoreDebug( SNORE_WARNING ) << "Closing a notification a second time, this should not heappen"; return; } if(m_activeNotifications.contains(n.id())) diff --git a/src/plugins/backends/growl/growl.cpp b/src/plugins/backends/growl/growl.cpp index 9d96a4f..f6befe1 100644 --- a/src/plugins/backends/growl/growl.cpp +++ b/src/plugins/backends/growl/growl.cpp @@ -58,7 +58,7 @@ bool Growl::initialize(SnoreCore *snore) } catch(const std::exception& e) { - qWarning() << e.what(); + snoreDebug( SNORE_WARNING ) << e.what(); delete m_defaultGNTP; m_defaultGNTP = NULL; return false; @@ -100,7 +100,7 @@ void Growl::slotRegisterApplication(const Application &application) growl->regist(alerts); }catch(const std::exception& e) { - qWarning() << e.what(); + snoreDebug( SNORE_WARNING ) << e.what(); } m_applications.insert(application.name(),growl); } @@ -135,7 +135,7 @@ void Growl::slotNotify(Notification notification) } catch(const std::exception& e) { - qWarning() << e.what(); + snoreDebug( SNORE_WARNING ) << e.what(); } startTimeout(notification); } diff --git a/src/plugins/backends/snoretoast/snoretoast.cpp b/src/plugins/backends/snoretoast/snoretoast.cpp index 0f9e640..fed7ad9 100644 --- a/src/plugins/backends/snoretoast/snoretoast.cpp +++ b/src/plugins/backends/snoretoast/snoretoast.cpp @@ -119,7 +119,7 @@ void SnoreToast::slotToastNotificationClosed(int code, QProcess::ExitStatus) break; case -1: //failed - qWarning() << "SnoreToast failed to display " << n << p->readAll(); + snoreDebug( SNORE_WARNING ) << "SnoreToast failed to display " << n << p->readAll(); break; }