From 028ed5afc18209064002c9f6aa34e08a228d471f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 11 Apr 2016 11:17:48 +0900 Subject: 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. --- events/roomaliasesevent.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'events/roomaliasesevent.cpp') 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; } -- cgit v1.2.3