From a4989a3ad6150efaa5e6b993c99477c90a724afe Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 27 Feb 2023 23:56:46 +0800 Subject: [PATCH] Add debug message --- spy/rpc_server.cpp | 1 + spy/spy.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spy/rpc_server.cpp b/spy/rpc_server.cpp index 3b650b4..2cdd2ed 100644 --- a/spy/rpc_server.cpp +++ b/spy/rpc_server.cpp @@ -286,6 +286,7 @@ static void PushMessage() if (rv != 0) { LOG_ERROR("nng_send: {}", rv); } + LOG_DEBUG("Send data length {}", stream.bytes_written); } } } diff --git a/spy/spy.cpp b/spy/spy.cpp index 65d53e4..f33d3a3 100644 --- a/spy/spy.cpp +++ b/spy/spy.cpp @@ -21,7 +21,7 @@ void InitSpy() LOG_ERROR("获取微信版本失败"); return; } - + LOG_DEBUG("WeChat version: {}", Wstring2String(version).c_str()); if (LoadCalls(version, &g_WxCalls) != 0) { //加载微信版本对应的Call地址 LOG_ERROR("不支持当前版本"); return;