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);