diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 17:53:53 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 17:53:53 +0900 |
commit | 2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7 (patch) | |
tree | a3316644a3ec0829ba7faea2ef476c25d79e9a8d /lib/events/stateevent.cpp | |
parent | 9993a0ea50165fd70f75b68c329ea045fb51d7f4 (diff) | |
download | libquotient-2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7.tar.gz libquotient-2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7.zip |
StateEvent::dumpTo: add state_key to the logline
Diffstat (limited to 'lib/events/stateevent.cpp')
-rw-r--r-- | lib/events/stateevent.cpp | 2 |
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) << " -> "; |