Simple C++ search logging.

This commit is contained in:
Alex Zolotarev 2015-01-25 02:09:15 +03:00
parent 5a47c7376b
commit ddabb7b7fe

View file

@ -19,6 +19,8 @@
#include "../std/vector.hpp"
#include "../std/bind.hpp"
#include "../3party/Alohalytics/src/alohalytics.h"
namespace search
{
@ -227,6 +229,9 @@ void Engine::EmitResults(SearchParams const & params, Results & res)
// }
m_searchResults = res;
// Basic test of our statistics engine.
alohalytics::LogEvent("searchEmitResults",
alohalytics::TStringMap({{params.m_query, strings::to_string(res.GetCount())}}));
params.m_callback(res);
}