[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [akonadi-next/develop] common: Debug output
From: Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date: 2015-11-30 17:52:53
Message-ID: E1a3SdB-0003TI-4H () scm ! kde ! org
[Download RAW message or body]
Git commit bf839f1a38518fd9302f4742ddeac16e891ac408 by Christian Mollekopf.
Committed on 30/11/2015 at 09:32.
Pushed by cmollekopf into branch 'develop'.
Debug output
M +1 -0 common/domain/event.cpp
M +4 -1 common/queryrunner.cpp
M +1 -0 common/resourceaccess.cpp
http://commits.kde.org/akonadi-next/bf839f1a38518fd9302f4742ddeac16e891ac408
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<Event>::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<class DomainType>
void QueryRunner<DomainType>::replaySet(ResultSet &resultSet, \
Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &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<DomainType>::replaySet(ResultSet &resultSet, \
Akonadi2::ResultPr }
return true;
})){};
+ Trace() << "Replayed " << counter << " results";
}
template<class DomainType>
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<void> ResourceAccess::sendCommand(int commandId, \
flatbuffers::FlatB
KAsync::Job<void> 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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic