From 2297afa25dbf2fc2d5a1016d12ca9dac2baaa6f9 Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 16 Feb 2025 13:52:31 +0800 Subject: [PATCH] fix(rpc_server): fix log function --- WeChatFerry/spy/rpc_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeChatFerry/spy/rpc_server.cpp b/WeChatFerry/spy/rpc_server.cpp index 418af65..7e2b33b 100644 --- a/WeChatFerry/spy/rpc_server.cpp +++ b/WeChatFerry/spy/rpc_server.cpp @@ -88,7 +88,7 @@ int RpcServer::start(int port) return -2; } #if ENABLE_WX_LOG - EnableLog(); + handler_.EnableLog(); #endif LOG_INFO("RPC 服务器成功启动,监听端口: {}", port_); return 0; @@ -105,7 +105,7 @@ int RpcServer::stop() handler_.UnListenPyq(); handler_.UnListenMsg(); #if ENABLE_WX_LOG - DisableLog(); + handler_.DisableLog(); #endif nng_fini(); if (cmdThread_.joinable()) {