fix(rpc_server): fix log function
This commit is contained in:
parent
f6ceb8139a
commit
2297afa25d
@ -88,7 +88,7 @@ int RpcServer::start(int port)
|
|||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
#if ENABLE_WX_LOG
|
#if ENABLE_WX_LOG
|
||||||
EnableLog();
|
handler_.EnableLog();
|
||||||
#endif
|
#endif
|
||||||
LOG_INFO("RPC 服务器成功启动,监听端口: {}", port_);
|
LOG_INFO("RPC 服务器成功启动,监听端口: {}", port_);
|
||||||
return 0;
|
return 0;
|
||||||
@ -105,7 +105,7 @@ int RpcServer::stop()
|
|||||||
handler_.UnListenPyq();
|
handler_.UnListenPyq();
|
||||||
handler_.UnListenMsg();
|
handler_.UnListenMsg();
|
||||||
#if ENABLE_WX_LOG
|
#if ENABLE_WX_LOG
|
||||||
DisableLog();
|
handler_.DisableLog();
|
||||||
#endif
|
#endif
|
||||||
nng_fini();
|
nng_fini();
|
||||||
if (cmdThread_.joinable()) {
|
if (cmdThread_.joinable()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user