aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 17:53:53 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 17:53:53 +0900
commit2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7 (patch)
treea3316644a3ec0829ba7faea2ef476c25d79e9a8d /lib/events
parent9993a0ea50165fd70f75b68c329ea045fb51d7f4 (diff)
downloadlibquotient-2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7.tar.gz
libquotient-2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7.zip
StateEvent::dumpTo: add state_key to the logline
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/stateevent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/stateevent.cpp b/lib/events/stateevent.cpp
index ea7533c5..280c334c 100644
--- a/lib/events/stateevent.cpp
+++ b/lib/events/stateevent.cpp
@@ -31,6 +31,8 @@ bool StateEventBase::repeatsState() const
void StateEventBase::dumpTo(QDebug dbg) const
{
+ if (!stateKey().isEmpty())
+ dbg << '<' << stateKey() << "> ";
if (unsignedJson().contains(PrevContentKeyL))
dbg << QJsonDocument(unsignedJson()[PrevContentKeyL].toObject())
.toJson(QJsonDocument::Compact) << " -> ";