From bf839f1a38518fd9302f4742ddeac16e891ac408 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 30 Nov 2015 10:32:14 +0100 Subject: Debug output --- common/domain/event.cpp | 1 + common/queryrunner.cpp | 5 ++++- common/resourceaccess.cpp | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/domain/event.cpp b/common/domain/event.cpp index 87e13bc..42c13e2 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp @@ -47,6 +47,7 @@ ResultSet TypeImplementation::queryIndexes(const Akonadi2::Query &query, }); appliedFilters << "uid"; } + Trace() << "Index lookup found " << keys.size() << " keys."; return ResultSet(keys); } diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index 3f62f6a..bb1127c 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp @@ -114,7 +114,9 @@ template void QueryRunner::replaySet(ResultSet &resultSet, Akonadi2::ResultProviderInterface &resultProvider) { // Trace() << "Replay set"; - while (resultSet.next([&resultProvider](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool { + int counter = 0; + while (resultSet.next([&resultProvider, &counter](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool { + counter++; switch (operation) { case Akonadi2::Operation_Creation: // Trace() << "Got creation"; @@ -131,6 +133,7 @@ void QueryRunner::replaySet(ResultSet &resultSet, Akonadi2::ResultPr } return true; })){}; + Trace() << "Replayed " << counter << " results"; } template diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 1b46b82..be25533 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp @@ -282,6 +282,7 @@ KAsync::Job ResourceAccess::sendCommand(int commandId, flatbuffers::FlatB KAsync::Job ResourceAccess::synchronizeResource(bool sourceSync, bool localSync) { + Trace() << "Sending synchronize command: " << sourceSync << localSync; flatbuffers::FlatBufferBuilder fbb; auto command = Akonadi2::CreateSynchronize(fbb, sourceSync, localSync); Akonadi2::FinishSynchronizeBuffer(fbb, command); -- cgit v1.2.3