From f207955e2e0a77b7a47b47513374ccc3e6a71c1e Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 5 Mar 2018 19:15:32 +0900 Subject: qmc-example: Logging tweaks --- examples/qmc-example.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/qmc-example.cpp') diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index 13a1b7c4..3fa74d42 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -130,6 +130,7 @@ void QMCTest::addAndRemoveTag() << " " << targetRoom->tagNames().join(", ").toStdString() << endl; if (targetRoom->tags().contains(TestTag)) { + cout << "Test tag set, removing it now" << endl; targetRoom->removeTag(TestTag); QMC_CHECK("Tagging test", !targetRoom->tags().contains(TestTag)); --semaphor; @@ -137,15 +138,18 @@ void QMCTest::addAndRemoveTag() } }); // The reverse order because tagsChanged is emitted synchronously. + cout << "Adding a tag" << endl; targetRoom->addTag(TestTag); } void QMCTest::sendAndRedact() { ++semaphor; + cout << "Sending a message to redact" << endl; auto* job = targetRoom->connection()->callApi(targetRoom->id(), - RoomMessageEvent("Message to redact")); + RoomMessageEvent(origin % ": Message to redact")); QObject::connect(job, &BaseJob::success, targetRoom, [job,this] { + cout << "Message to redact has been succesfully sent, redacting" << endl; targetRoom->redactEvent(job->eventId(), "qmc-example"); }); QObject::connect(targetRoom, &Room::replacedEvent, targetRoom, -- cgit v1.2.3