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/typingevent.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'events/typingevent.cpp') diff --git a/events/typingevent.cpp b/events/typingevent.cpp index 242094e1..36a7e693 100644 --- a/events/typingevent.cpp +++ b/events/typingevent.cpp @@ -19,6 +19,7 @@ #include "typingevent.h" #include +#include using namespace QMatrixClient; @@ -53,5 +54,6 @@ TypingEvent* TypingEvent::fromJson(const QJsonObject& obj) { e->d->users << user.toString(); } + qDebug() << "Typing:" << e->d->users; return e; } -- cgit v1.2.3