diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-13 15:10:07 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-13 15:10:07 +0900 |
commit | 63db311d5a64b9942dc69e1b13b4570a548554c0 (patch) | |
tree | b996e4fc6533b93677986ade4e99cc718c3893c2 /events/receiptevent.cpp | |
parent | cff6aaafeee5c5f7d337c6001694bda119d3cba9 (diff) | |
download | libquotient-63db311d5a64b9942dc69e1b13b4570a548554c0.tar.gz libquotient-63db311d5a64b9942dc69e1b13b4570a548554c0.zip |
Refactored logging enhancements
logging.h/logging.cpp is now a full-fledged pair for all things logging. Two more categories added, EPHEMERAL and SYNCJOB, that control logging for ephemeral events and SyncJob, respectively (in particular, switching off EPHEMERAL greatly reduces the logspam about moving read markers and how many users have read up to which event).
Diffstat (limited to 'events/receiptevent.cpp')
-rw-r--r-- | events/receiptevent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/events/receiptevent.cpp b/events/receiptevent.cpp index 5d11a0dd..c163424f 100644 --- a/events/receiptevent.cpp +++ b/events/receiptevent.cpp @@ -34,10 +34,10 @@ Example of a Receipt Event: */ #include "receiptevent.h" -#include "util.h" + +#include "logging.h" #include <QtCore/QJsonArray> -#include <QtCore/QDebug> using namespace QMatrixClient; @@ -73,8 +73,8 @@ ReceiptEvent* ReceiptEvent::fromJson(const QJsonObject& obj) { if (eventIt.key().isEmpty()) { - qCWarning(EVENTS) << "ReceiptEvent has an empty event id, skipping"; - qCDebug(EVENTS) << "ReceiptEvent content follows:\n" << contents; + qCWarning(EPHEMERAL) << "ReceiptEvent has an empty event id, skipping"; + qCDebug(EPHEMERAL) << "ReceiptEvent content follows:\n" << contents; continue; } const QJsonObject reads = eventIt.value().toObject().value("m.read").toObject(); |