aboutsummaryrefslogtreecommitdiff
path: root/events/typingevent.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/typingevent.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/typingevent.cpp')
-rw-r--r--events/typingevent.cpp2
1 files changed, 2 insertions, 0 deletions
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 <QtCore/QJsonArray>
+#include <QtCore/QDebug>
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;
}