summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-12 10:46:11 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-12 10:46:11 +0100
commitbb529848d4f7037ca92707b4dedbf40ae9c3d673 (patch)
tree3ac22b0e71b854eb32fbbf1f02dd764874c8b286 /common/store.cpp
parent489d5b72696d5c5f802ee206bdde0693ba172018 (diff)
downloadsink-bb529848d4f7037ca92707b4dedbf40ae9c3d673.tar.gz
sink-bb529848d4f7037ca92707b4dedbf40ae9c3d673.zip
Debug output
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/store.cpp b/common/store.cpp
index 7797274..c11e1e8 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -200,7 +200,7 @@ KAsync::Job<void> Store::move(const DomainType &domainObject, const QByteArray &
200template <class DomainType> 200template <class DomainType>
201KAsync::Job<void> Store::copy(const DomainType &domainObject, const QByteArray &newResource) 201KAsync::Job<void> Store::copy(const DomainType &domainObject, const QByteArray &newResource)
202{ 202{
203 SinkTrace() << "Copy: " << domainObject << newResource; 203 SinkLog() << "Copy: " << domainObject << newResource;
204 // Potentially copy to separate thread as well 204 // Potentially copy to separate thread as well
205 auto facade = getFacade<DomainType>(domainObject.resourceInstanceIdentifier()); 205 auto facade = getFacade<DomainType>(domainObject.resourceInstanceIdentifier());
206 return facade->copy(domainObject, newResource).addToContext(std::shared_ptr<void>(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to copy"; }); 206 return facade->copy(domainObject, newResource).addToContext(std::shared_ptr<void>(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to copy"; });
@@ -209,7 +209,7 @@ KAsync::Job<void> Store::copy(const DomainType &domainObject, const QByteArray &
209template <class DomainType> 209template <class DomainType>
210KAsync::Job<void> Store::remove(const DomainType &domainObject) 210KAsync::Job<void> Store::remove(const DomainType &domainObject)
211{ 211{
212 SinkTrace() << "Remove: " << domainObject; 212 SinkLog() << "Remove: " << domainObject;
213 // Potentially move to separate thread as well 213 // Potentially move to separate thread as well
214 auto facade = getFacade<DomainType>(domainObject.resourceInstanceIdentifier()); 214 auto facade = getFacade<DomainType>(domainObject.resourceInstanceIdentifier());
215 return facade->remove(domainObject).addToContext(std::shared_ptr<void>(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to remove"; }); 215 return facade->remove(domainObject).addToContext(std::shared_ptr<void>(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to remove"; });