aboutsummaryrefslogtreecommitdiff
path: root/events/roomaliasesevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-04-11 11:17:48 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-05-27 20:03:16 +0900
commit028ed5afc18209064002c9f6aa34e08a228d471f (patch)
tree19487214b57c445692c85b2a2b7eae8685022bec /events/roomaliasesevent.cpp
parent5e6a0b961d1fc2162c5a7498f10bbd1a477f1ece (diff)
downloadlibquotient-028ed5afc18209064002c9f6aa34e08a228d471f.tar.gz
libquotient-028ed5afc18209064002c9f6aa34e08a228d471f.zip
Enhance logging
1. Introduce QDebug manipulators and formatJson manipulator in particular - this allows to accommodate some changes in Qt's debug printing behaviour between versions. 2. Show JSON for some questionable objects (UnknownEvents, events with no event_id etc.) 3. Log the list of typing users and the user id when getting an avatar.
Diffstat (limited to 'events/roomaliasesevent.cpp')
-rw-r--r--events/roomaliasesevent.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/events/roomaliasesevent.cpp b/events/roomaliasesevent.cpp
index 54fb5682..15b4c54e 100644
--- a/events/roomaliasesevent.cpp
+++ b/events/roomaliasesevent.cpp
@@ -64,7 +64,6 @@ QStringList RoomAliasesEvent::aliases() const
RoomAliasesEvent* RoomAliasesEvent::fromJson(const QJsonObject& obj)
{
- qDebug() << "RoomAliasesEvent::fromJson";
RoomAliasesEvent* e = new RoomAliasesEvent();
e->parseJson(obj);
const QJsonObject contents = obj.value("content").toObject();
@@ -73,6 +72,6 @@ RoomAliasesEvent* RoomAliasesEvent::fromJson(const QJsonObject& obj)
{
e->d->aliases << alias.toString();
}
- qDebug() << e->d->aliases;
+ qDebug() << "RoomAliasesEvent:" << e->d->aliases;
return e;
}