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 /common/test.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 'common/test.cpp')
-rw-r--r-- | common/test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/test.cpp b/common/test.cpp index 71bb972..387fcda 100644 --- a/common/test.cpp +++ b/common/test.cpp | |||
@@ -141,7 +141,7 @@ public: | |||
141 | // mTestAccount->removeEntity<T>(domainObject); | 141 | // mTestAccount->removeEntity<T>(domainObject); |
142 | return KAsync::null<void>(); | 142 | return KAsync::null<void>(); |
143 | }; | 143 | }; |
144 | QPair<KAsync::Job<void>, typename Sink::ResultEmitter<typename T::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE | 144 | QPair<KAsync::Job<void>, typename Sink::ResultEmitter<typename T::Ptr>::Ptr> load(const Sink::Query &query, const Sink::Log::Context &) Q_DECL_OVERRIDE |
145 | { | 145 | { |
146 | auto resultProvider = new Sink::ResultProvider<typename T::Ptr>(); | 146 | auto resultProvider = new Sink::ResultProvider<typename T::Ptr>(); |
147 | resultProvider->onDone([resultProvider]() { | 147 | resultProvider->onDone([resultProvider]() { |