diff options
Diffstat (limited to 'search/emitter.hpp')
-rw-r--r-- | search/emitter.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/search/emitter.hpp b/search/emitter.hpp index 8989a5ef09..eb51542932 100644 --- a/search/emitter.hpp +++ b/search/emitter.hpp @@ -3,6 +3,8 @@ #include "search/result.hpp" #include "search/search_params.hpp" +#include "base/logging.hpp" + namespace search { class Emitter @@ -21,6 +23,8 @@ public: { if (m_onResults) m_onResults(m_results); + else + LOG(LERROR, ("OnResults is not set.")); } inline Results const & GetResults() const { return m_results; } @@ -29,6 +33,8 @@ public: { if (m_onResults) m_onResults(Results::GetEndMarker(cancelled)); + else + LOG(LERROR, ("OnResults is not set.")); } private: |