diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-14 11:41:32 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-14 11:41:32 +0100 |
commit | 6f3f86f9617486e1d30f263189fedafa1fedd62e (patch) | |
tree | f9f2bea723c2be293ef4e4788215fa237dc1a089 /common/store.cpp | |
parent | ec79366d96f7376b758fb41a50d3096518be4333 (diff) | |
download | sink-6f3f86f9617486e1d30f263189fedafa1fedd62e.tar.gz sink-6f3f86f9617486e1d30f263189fedafa1fedd62e.zip |
Debug output
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/store.cpp b/common/store.cpp index 1c8620b..727f4cc 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -281,14 +281,14 @@ static KAsync::Job<void> synchronize(const QByteArray &resource, const Sink::Syn | |||
281 | auto resourceAccess = ResourceAccessFactory::instance().getAccess(resource, ResourceConfig::getResourceType(resource)); | 281 | auto resourceAccess = ResourceAccessFactory::instance().getAccess(resource, ResourceConfig::getResourceType(resource)); |
282 | return resourceAccess->synchronizeResource(scope) | 282 | return resourceAccess->synchronizeResource(scope) |
283 | .addToContext(resourceAccess) | 283 | .addToContext(resourceAccess) |
284 | .then<void>([](const KAsync::Error &error) { | 284 | .then([=](const KAsync::Error &error) { |
285 | if (error) { | 285 | if (error) { |
286 | SinkWarning() << "Error during sync."; | 286 | SinkWarning() << "Error during sync."; |
287 | return KAsync::error<void>(error); | 287 | return KAsync::error(error); |
288 | } | 288 | } |
289 | SinkTrace() << "synced."; | 289 | SinkTrace() << "Synchronization of resource " << resource << " complete."; |
290 | return KAsync::null<void>(); | 290 | return KAsync::null(); |
291 | }); | 291 | }); |
292 | } | 292 | } |
293 | 293 | ||
294 | KAsync::Job<void> Store::synchronize(const Sink::Query &query) | 294 | KAsync::Job<void> Store::synchronize(const Sink::Query &query) |