From cd206b3a720807301f1b1707698c4a405da89217 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 6 Dec 2016 19:12:47 +0100 Subject: Debug output --- common/storage/entitystore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/storage') diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 1417861..7414f49 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -130,6 +130,8 @@ bool EntityStore::add(const QByteArray &type, const ApplicationDomain::Applicati auto entity = *ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation(entity_, entity_.availableProperties()); entity.setChangedProperties(entity.availableProperties().toSet()); + SinkTrace() << "New entity " << entity; + preprocess(entity); d->typeIndex(type).add(entity.identifier(), entity, d->transaction); @@ -205,7 +207,7 @@ bool EntityStore::modify(const QByteArray &type, const ApplicationDomain::Applic } newEntity.setChangedProperties(newEntity.availableProperties().toSet()); - SinkTrace() << "All properties: " << newEntity.availableProperties(); + SinkTrace() << "Modified entity " << newEntity; flatbuffers::FlatBufferBuilder fbb; d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize()); @@ -251,6 +253,8 @@ bool EntityStore::remove(const QByteArray &type, const QByteArray &uid, bool rep preprocess(current); d->typeIndex(type).remove(current.identifier(), current, d->transaction); + SinkTrace() << "Removed entity " << current; + const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1; // Add metadata buffer -- cgit v1.2.3