From b940489ed6afe413339a1c602d05f3b4f3133463 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 19 Jun 2018 10:29:20 +0200 Subject: Asserts, debug messages and other cleanup --- common/storage/entitystore.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'common/storage') diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 4fe7e3b..18c788a 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -249,23 +249,19 @@ bool EntityStore::add(const QByteArray &type, ApplicationDomainType entity, bool ApplicationDomain::ApplicationDomainType EntityStore::applyDiff(const QByteArray &type, const ApplicationDomainType ¤t, const ApplicationDomainType &diff, const QByteArrayList &deletions) const { + SinkTraceCtx(d->logCtx) << "Applying diff: " << current.availableProperties() << "Deletions: " << deletions << "Changeset: " << diff.changedProperties(); auto newEntity = *ApplicationDomainType::getInMemoryRepresentation(current, current.availableProperties()); - SinkTraceCtx(d->logCtx) << "Modified entity: " << newEntity; - // Apply diff - //SinkTrace() << "Applying changed properties: " << changeset; for (const auto &property : diff.changedProperties()) { const auto value = diff.getProperty(property); if (value.isValid()) { - //SinkTrace() << "Setting property: " << property; newEntity.setProperty(property, value); } } // Remove deletions for (const auto &property : deletions) { - //SinkTrace() << "Removing property: " << property; newEntity.setProperty(property, QVariant()); } return newEntity; -- cgit v1.2.3