Remove logger from StrippedQuery

Summary:
benchmark/query/stripped.cpp outputs garbage because of some race
condition in logger. Sometime even crashes, just be sure this
should be removed.

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D477
This commit is contained in:
Mislav Bradac 2017-06-15 13:42:03 +02:00
parent e68c3f4e5f
commit 5403b99e18
2 changed files with 2 additions and 5 deletions

View File

@ -19,8 +19,7 @@ using namespace antlr4;
namespace query {
StrippedQuery::StrippedQuery(const std::string &query)
: Loggable("StrippedQuery") {
StrippedQuery::StrippedQuery(const std::string &query) {
// Tokenize the query.
ANTLRInputStream input(query);
CypherLexer lexer(&input);
@ -128,7 +127,5 @@ StrippedQuery::StrippedQuery(const std::string &query)
query_ = utils::Join(token_strings, " ");
hash_ = fnv(query_);
logger.info("stripped_query = {}", query_);
logger.info("query_hash = {}", hash_);
}
}

View File

@ -21,7 +21,7 @@ const std::string kStrippedBooleanToken = "true";
* * literals stripped from query
* * hash of stripped query
*/
class StrippedQuery : Loggable {
class StrippedQuery {
public:
/**
* Strips the input query and stores stripped query, stripped arguments and