From 933c653a18f7bf62ec7f821126bfb79a36427066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Thu, 24 Aug 2023 17:46:48 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E4=BF=AE=E6=AD=A3=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=AF=BC=E8=87=B4=E8=BF=9B=E7=A8=8B=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NetTunnelSDK/protocol/protocol.cpp | 5 +---- NetTunnelSDK/tunnel/tunnel.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NetTunnelSDK/protocol/protocol.cpp b/NetTunnelSDK/protocol/protocol.cpp index ffdfa49..fa7d9be 100644 --- a/NetTunnelSDK/protocol/protocol.cpp +++ b/NetTunnelSDK/protocol/protocol.cpp @@ -379,10 +379,7 @@ template int PlatformProtolPostMessage(const TCHAR *pUrlPath } if (res.error() != httplib::Error::Success) { - SPDLOG_ERROR(TEXT("[{0}]:Post Data {1} error: {2}"), pUrlPath, pJson, httplib::to_string(res.error())); - if(res.error() != httplib::Error::Connection) { - SPDLOG_DEBUG(TEXT("+++++ Http Request {0}\n---- Http Response {1}"), pJson, res->body.c_str()); - } + SPDLOG_ERROR(TEXT("[{0}]:Post Data {1} error: {2}"), pUrlPath, pJson, httplib::to_string(res.error())); free(pJson); return -ERR_HTTP_POST_DATA; } diff --git a/NetTunnelSDK/tunnel/tunnel.cpp b/NetTunnelSDK/tunnel/tunnel.cpp index 918a45b..831f3bc 100644 --- a/NetTunnelSDK/tunnel/tunnel.cpp +++ b/NetTunnelSDK/tunnel/tunnel.cpp @@ -53,7 +53,7 @@ static void InitTunnelSDKLog(const TCHAR *pLogFile, LOG_LEVEL level) { TCHAR tmpPath[MAX_PATH]; if (pLogFile && strlen(pLogFile) > 0) { - if (PathIsRelative(buf)) { + if (PathIsRelative(pLogFile)) { StringCbPrintf(buf, MAX_PATH, TEXT("%s\\%s"), g_globalConfig.workDirectory, pLogFile); } else { StringCbCopy(buf, MAX_PATH, pLogFile);