From 2fe086f4e8f15cf366fc2cf1c9942c7b7541cec7 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 4 Nov 2018 17:53:53 +0900 Subject: StateEvent::dumpTo: add state_key to the logline --- lib/events/stateevent.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/events/stateevent.cpp') 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) << " -> "; -- cgit v1.2.3