aboutsummaryrefslogtreecommitdiff
path: root/events/roommessageevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-05-01 01:54:53 +0900
committerGitHub <noreply@github.com>2017-05-01 01:54:53 +0900
commit096a05d59654244f7c928dc5f2537a760070a577 (patch)
tree1ee17f9016b0f333c08cf5d0eb0c8a8ab86a8573 /events/roommessageevent.cpp
parent9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e (diff)
parent3fa1ee3c6b04d0793ccca3f903797625f7a08d03 (diff)
downloadlibquotient-096a05d59654244f7c928dc5f2537a760070a577.tar.gz
libquotient-096a05d59654244f7c928dc5f2537a760070a577.zip
Merge pull request #61 from elvisangelaccio/qloggingcategory
Port to categorized logging
Diffstat (limited to 'events/roommessageevent.cpp')
-rw-r--r--events/roommessageevent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp
index f5dcb7d0..fd6de464 100644
--- a/events/roommessageevent.cpp
+++ b/events/roommessageevent.cpp
@@ -97,8 +97,8 @@ ContentPair makeVideo(const QJsonObject& json)
ContentPair makeUnknown(const QJsonObject& json)
{
- qDebug() << "RoomMessageEvent: couldn't resolve msgtype, JSON follows:";
- qDebug() << json;
+ qCDebug(EVENTS) << "RoomMessageEvent: couldn't resolve msgtype, JSON follows:";
+ qCDebug(EVENTS) << json;
return { MessageEventType::Unknown, new Base };
}
@@ -110,7 +110,7 @@ RoomMessageEvent* RoomMessageEvent::fromJson(const QJsonObject& obj)
{
e->d->userId = obj.value("sender").toString();
} else {
- qDebug() << "RoomMessageEvent: user_id not found";
+ qCDebug(EVENTS) << "RoomMessageEvent: user_id not found";
}
if( obj.contains("content") )
{
@@ -135,8 +135,8 @@ RoomMessageEvent* RoomMessageEvent::fromJson(const QJsonObject& obj)
}
else
{
- qWarning() << "RoomMessageEvent(" << e->id() << "): no body or msgtype";
- qDebug() << obj;
+ qCWarning(EVENTS) << "RoomMessageEvent(" << e->id() << "): no body or msgtype";
+ qCDebug(EVENTS) << obj;
}
}
return e;