diff --git a/client_proxy/main.cpp b/client_proxy/main.cpp index 719006b..9eed70a 100644 --- a/client_proxy/main.cpp +++ b/client_proxy/main.cpp @@ -283,6 +283,7 @@ void test_pub() int main() { + log::get().init("rest_rpc_client.lg"); //test_performance(); //test_client(); //test_upload(); diff --git a/main.cpp b/main.cpp index 29f6654..0c4c742 100644 --- a/main.cpp +++ b/main.cpp @@ -95,7 +95,7 @@ struct messager TEST_CASE(rpc_qps, true) { messager m; - + log::get().init("rest_rpc_server.lg"); server s(9000, std::thread::hardware_concurrency()); //if you fill the last param, the server will remove timeout connections. default never timeout. s.register_handler("add", &add);; s.register_handler("translate", &messager::translate, &m);