From 5d94d9701b980d84170d0c7b860a3bc469cd8979 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 10 Jan 2017 15:08:38 +0100 Subject: Debug output --- common/store.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/store.cpp b/common/store.cpp index c461157..7797274 100644 --- a/common/store.cpp +++ b/common/store.cpp @@ -173,7 +173,7 @@ static std::shared_ptr> getFacade(const QByteArray &reso template KAsync::Job Store::create(const DomainType &domainObject) { - SinkTrace() << "Create: " << domainObject; + SinkLog() << "Create: " << domainObject; // Potentially move to separate thread as well auto facade = getFacade(domainObject.resourceInstanceIdentifier()); return facade->create(domainObject).addToContext(std::shared_ptr(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to create"; }); @@ -182,7 +182,7 @@ KAsync::Job Store::create(const DomainType &domainObject) template KAsync::Job Store::modify(const DomainType &domainObject) { - SinkTrace() << "Modify: " << domainObject; + SinkLog() << "Modify: " << domainObject; // Potentially move to separate thread as well auto facade = getFacade(domainObject.resourceInstanceIdentifier()); return facade->modify(domainObject).addToContext(std::shared_ptr(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to modify"; }); @@ -191,7 +191,7 @@ KAsync::Job Store::modify(const DomainType &domainObject) template KAsync::Job Store::move(const DomainType &domainObject, const QByteArray &newResource) { - SinkTrace() << "Move: " << domainObject << newResource; + SinkLog() << "Move: " << domainObject << newResource; // Potentially move to separate thread as well auto facade = getFacade(domainObject.resourceInstanceIdentifier()); return facade->move(domainObject, newResource).addToContext(std::shared_ptr(facade)).onError([](const KAsync::Error &error) { SinkWarning() << "Failed to move"; }); @@ -269,6 +269,7 @@ KAsync::Job Store::synchronize(const Sink::SyncScope &scope) { Sink::Query query; query.setFilter(scope.getResourceFilter()); + SinkLog() << "Synchronizing: " << query; return fetchAll(query) .template each([scope](const ApplicationDomain::SinkResource::Ptr &resource) -> KAsync::Job { return synchronize(resource->identifier(), scope); -- cgit v1.2.3