Use GLogger instead of broken memgraph Logger.

Summary:
http://rpg.ifi.uzh.ch/docs/glog.html

Second phase before tests complete.

Delete logging test.

Finish relase loging.

Reviewers: mislav.bradac, teon.banek, buda

Reviewed By: teon.banek

Subscribers: buda, pullbot

Differential Revision: https://phabricator.memgraph.io/D500
This commit is contained in:
Dominik Gleich
2017-06-21 11:29:13 +02:00
parent 19c0dfe084
commit e2f3aba332
103 changed files with 583 additions and 1252 deletions

View File

@@ -44,8 +44,8 @@ TEST(Network, SessionLeak) {
int testlen = 3000;
for (int i = 0; i < N; ++i) {
clients.push_back(
std::thread(client_run, i, interface, ep.port_str(), data, testlen, testlen));
clients.push_back(std::thread(client_run, i, interface, ep.port_str(), data,
testlen, testlen));
std::this_thread::sleep_for(10ms);
}
@@ -62,8 +62,7 @@ TEST(Network, SessionLeak) {
// run with "valgrind --leak-check=full ./network_session_leak" to check for
// memory leaks
int main(int argc, char **argv) {
logging::init_sync();
logging::log->pipe(std::make_unique<Stdout>());
google::InitGoogleLogging(argv[0]);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}