diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 10:46:11 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 10:46:11 +0100 |
commit | bb529848d4f7037ca92707b4dedbf40ae9c3d673 (patch) | |
tree | 3ac22b0e71b854eb32fbbf1f02dd764874c8b286 /common/store.cpp | |
parent | 489d5b72696d5c5f802ee206bdde0693ba172018 (diff) | |
download | sink-bb529848d4f7037ca92707b4dedbf40ae9c3d673.tar.gz sink-bb529848d4f7037ca92707b4dedbf40ae9c3d673.zip |
Debug output
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 4 |
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 & | |||
200 | template <class DomainType> | 200 | template <class DomainType> |
201 | KAsync::Job<void> Store::copy(const DomainType &domainObject, const QByteArray &newResource) | 201 | KAsync::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 & | |||
209 | template <class DomainType> | 209 | template <class DomainType> |
210 | KAsync::Job<void> Store::remove(const DomainType &domainObject) | 210 | KAsync::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"; }); |