Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
init log
Browse files Browse the repository at this point in the history
  • Loading branch information
Gogs committed May 31, 2016
1 parent dc33042 commit 6c5631f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions client_proxy/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ void test_pub()

int main()
{
log::get().init("rest_rpc_client.lg");
//test_performance();
//test_client();
//test_upload();
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c5631f

Please sign in to comment.