diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:12:47 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:13:05 +0100 |
commit | cd206b3a720807301f1b1707698c4a405da89217 (patch) | |
tree | 084c8afc2e6cadb72c194a2acded26a1409151ee /common/store.cpp | |
parent | ede78a9840ea6c30244a2cb161cfd1cee63b8283 (diff) | |
download | sink-cd206b3a720807301f1b1707698c4a405da89217.tar.gz sink-cd206b3a720807301f1b1707698c4a405da89217.zip |
Debug output
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/store.cpp b/common/store.cpp index ef8a593..477b852 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -273,7 +273,7 @@ KAsync::Job<void> Store::removeDataFromDisk(const QByteArray &identifier) | |||
273 | 273 | ||
274 | static KAsync::Job<void> synchronize(const QByteArray &resource, const Sink::SyncScope &scope) | 274 | static KAsync::Job<void> synchronize(const QByteArray &resource, const Sink::SyncScope &scope) |
275 | { | 275 | { |
276 | SinkTrace() << "Synchronizing " << resource; | 276 | SinkLog() << "Synchronizing " << resource; |
277 | auto resourceAccess = ResourceAccessFactory::instance().getAccess(resource, ResourceConfig::getResourceType(resource)); | 277 | auto resourceAccess = ResourceAccessFactory::instance().getAccess(resource, ResourceConfig::getResourceType(resource)); |
278 | return resourceAccess->synchronizeResource(scope) | 278 | return resourceAccess->synchronizeResource(scope) |
279 | .addToContext(resourceAccess) | 279 | .addToContext(resourceAccess) |
@@ -295,7 +295,7 @@ KAsync::Job<void> Store::synchronize(const Sink::Query &query) | |||
295 | KAsync::Job<void> Store::synchronize(const Sink::SyncScope &scope) | 295 | KAsync::Job<void> Store::synchronize(const Sink::SyncScope &scope) |
296 | { | 296 | { |
297 | auto resources = getResources(scope.getResourceFilter()).keys(); | 297 | auto resources = getResources(scope.getResourceFilter()).keys(); |
298 | SinkTrace() << "Synchronize" << resources; | 298 | SinkLog() << "Synchronize" << resources; |
299 | return KAsync::value(resources) | 299 | return KAsync::value(resources) |
300 | .template each([scope](const QByteArray &resource) { | 300 | .template each([scope](const QByteArray &resource) { |
301 | return synchronize(resource, scope); | 301 | return synchronize(resource, scope); |
@@ -363,6 +363,7 @@ DomainType Store::readOne(const Sink::Query &query) | |||
363 | if (!list.isEmpty()) { | 363 | if (!list.isEmpty()) { |
364 | return list.first(); | 364 | return list.first(); |
365 | } | 365 | } |
366 | SinkWarning() << "Tried to read value but no values are available."; | ||
366 | return DomainType(); | 367 | return DomainType(); |
367 | } | 368 | } |
368 | 369 | ||