aboutsummaryrefslogtreecommitdiff
path: root/events/event.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2017-04-30 15:19:31 +0200
committerElvis Angelaccio <elvis.angelaccio@kde.org>2017-04-30 15:21:05 +0200
commit3fa1ee3c6b04d0793ccca3f903797625f7a08d03 (patch)
tree1ee17f9016b0f333c08cf5d0eb0c8a8ab86a8573 /events/event.cpp
parent9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e (diff)
downloadlibquotient-3fa1ee3c6b04d0793ccca3f903797625f7a08d03.tar.gz
libquotient-3fa1ee3c6b04d0793ccca3f903797625f7a08d03.zip
Port to categorized logging
This greatly reduces the noise made by quaternion. To enable full logging, export the following variable: QT_LOGGING_RULES="libqmatrixclient.*.debug=true"
Diffstat (limited to 'events/event.cpp')
-rw-r--r--events/event.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/events/event.cpp b/events/event.cpp
index 8ad56f1b..b3f75ca9 100644
--- a/events/event.cpp
+++ b/events/event.cpp
@@ -124,8 +124,8 @@ bool Event::parseJson(const QJsonObject& obj)
if (d->id.isEmpty())
{
correct = false;
- qDebug() << "Event: can't find event_id; event dump follows";
- qDebug() << formatJson << obj;
+ qCDebug(EVENTS) << "Event: can't find event_id; event dump follows";
+ qCDebug(EVENTS) << formatJson << obj;
}
if( obj.contains("origin_server_ts") )
{
@@ -135,8 +135,8 @@ bool Event::parseJson(const QJsonObject& obj)
else if (d->type != EventType::Unknown)
{
correct = false;
- qDebug() << "Event: can't find ts; event dump follows";
- qDebug() << formatJson << obj;
+ qCDebug(EVENTS) << "Event: can't find ts; event dump follows";
+ qCDebug(EVENTS) << formatJson << obj;
}
}
return correct;