Suppress logging in tests/manual

Reviewers: teon.banek

Reviewed By: teon.banek

Differential Revision: https://phabricator.memgraph.io/D1237
This commit is contained in:
florijan 2018-02-23 15:49:56 +01:00
parent 31fe4541c2
commit c83078e7d9
3 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void random_generate(database::GraphDb &db, int64_t node_count,
int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
FLAGS_min_log_level = 1000;
FLAGS_min_log_level = google::ERROR;
google::InitGoogleLogging(argv[0]);
// parse the first cmd line argument as the count of nodes to randomly create

View File

@ -34,7 +34,7 @@ class WorkerInThread {
int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
FLAGS_min_log_level = 1000;
FLAGS_min_log_level = google::ERROR;
google::InitGoogleLogging(argv[0]);
// Start the master

View File

@ -31,6 +31,8 @@ DEFINE_string(save_mock_db_file, "",
DEFINE_string(load_mock_db_file, "",
"File from which the mock database should be loaded");
DECLARE_int32(min_log_level);
#ifdef HAS_READLINE
// TODO: This is copied from src/query/console.cpp
// It should probably be moved to some utils file.
@ -746,6 +748,7 @@ auto MakeLogicalPlans(query::AstTreeStorage &ast,
int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
FLAGS_min_log_level = google::ERROR;
google::InitGoogleLogging(argv[0]);
auto in_db_filename = utils::Trim(FLAGS_load_mock_db_file);
if (!in_db_filename.empty() &&