diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 18:22:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 18:22:39 +0100 |
commit | b2ad8f785e801a35cadf254d827f56d648be510c (patch) | |
tree | 4eeb1e3eefb02c40dac40469c0fae5ad91feb3e3 /examples/maildirresource/maildirresource.cpp | |
parent | 1fe8664ec74165fc3f250098609ea0e049e3adc8 (diff) | |
download | sink-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/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 997ddef..b64e8d3 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -454,7 +454,7 @@ protected: | |||
454 | auto mainStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId(), Sink::Storage::DataStore::ReadOnly); | 454 | auto mainStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId(), Sink::Storage::DataStore::ReadOnly); |
455 | auto transaction = mainStore->createTransaction(Sink::Storage::DataStore::ReadOnly); | 455 | auto transaction = mainStore->createTransaction(Sink::Storage::DataStore::ReadOnly); |
456 | 456 | ||
457 | Sink::Storage::EntityStore entityStore(mResourceContext); | 457 | Sink::Storage::EntityStore entityStore(mResourceContext, {"maildirresource"}); |
458 | auto syncStore = QSharedPointer<SynchronizerStore>::create(synchronizationTransaction); | 458 | auto syncStore = QSharedPointer<SynchronizerStore>::create(synchronizationTransaction); |
459 | 459 | ||
460 | SinkTrace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue; | 460 | SinkTrace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue; |