OCT 1. 修正打印日志导致进程异常问题
This commit is contained in:
parent
ef058012e6
commit
933c653a18
|
@ -379,10 +379,7 @@ template<class T1, class T2> 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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue