summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/imapresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
commitb2ad8f785e801a35cadf254d827f56d648be510c (patch)
tree4eeb1e3eefb02c40dac40469c0fae5ad91feb3e3 /examples/imapresource/imapresource.cpp
parent1fe8664ec74165fc3f250098609ea0e049e3adc8 (diff)
downloadsink-b2ad8f785e801a35cadf254d827f56d648be510c.tar.gz
sink-b2ad8f785e801a35cadf254d827f56d648be510c.zip
Introduced Log::Context
To have hierarchical debug output we have to pass around something at run-time, there is no reasonable alternative. Log::Context provides the identifier to do just that and largely replaces the debug component idea.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r--examples/imapresource/imapresource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp
index e16a8d7..7d71136 100644
--- a/examples/imapresource/imapresource.cpp
+++ b/examples/imapresource/imapresource.cpp
@@ -579,7 +579,7 @@ protected:
579 auto mainStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId(), Sink::Storage::DataStore::ReadOnly); 579 auto mainStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId(), Sink::Storage::DataStore::ReadOnly);
580 auto transaction = mainStore->createTransaction(Sink::Storage::DataStore::ReadOnly); 580 auto transaction = mainStore->createTransaction(Sink::Storage::DataStore::ReadOnly);
581 581
582 Sink::Storage::EntityStore entityStore(mResourceContext); 582 Sink::Storage::EntityStore entityStore(mResourceContext, {"imapresource"});
583 auto syncStore = QSharedPointer<Sink::SynchronizerStore>::create(synchronizationTransaction); 583 auto syncStore = QSharedPointer<Sink::SynchronizerStore>::create(synchronizationTransaction);
584 584
585 SinkTrace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue; 585 SinkTrace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue;