Explorar o código

#IQRV #comment add errmsg warning

chenliangyu hai 1 ano
pai
achega
56e144c78c
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 1 1
      Framework/spshell/spshell.cpp
  2. 7 1
      Module/mod_chromium/baseEx.cpp

+ 1 - 1
Framework/spshell/spshell.cpp

@@ -273,7 +273,7 @@ static LONG WINAPI SuppressError(struct _EXCEPTION_POINTERS* ExceptionInfo)
 	sprintf_s(szCmd, 256, "TASKKILL /f /im sphost_re.exe");
 	system(szCmd);
 
-	DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__).setLogCode(ERR_SPSHELL_EXCETION).setResultCode(RTAERR_SPSHELL_EXCEPTION)("spshell exit exception, saveDmp, %s, detail:%d:%s"
+	DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__).setLogCode(ERR_SPSHELL_EXCETION).setResultCode(RTAERR_SPSHELL_EXCEPTION)("spshell exit exception, saveDmp, %s, detail:%d:%s"
 		, tmp, dmpFileStr.length() ,dmpFileStr.c_str());
 
 	ExitProcess(Error_Exception); // exit process to suppress reporting exception

+ 7 - 1
Module/mod_chromium/baseEx.cpp

@@ -373,8 +373,11 @@ std::pair<unsigned long, ErrMsgStruct> getErrMsgByRemark(std::string srcMsg)
 	std::string userCodeStr = CSimpleString::Format("0x%X", userCode).GetData();
 	std::transform(userCodeStr.begin(), userCodeStr.end(), userCodeStr.begin(), [](unsigned char c) { return std::tolower(c); });
 
-	if(g_UserCodeToMsgTip.size() == 0)
+	if (g_UserCodeToMsgTip.size() == 0)
+	{
+		DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode("RTA42F0").setAPI(__FUNCTION__)("RTA42F0|微服务异常|(%s)", srcMsg.c_str());
 		return std::make_pair(0, ErrMsgStruct("RTA42F0", CSimpleString::Format("RTA42F0|微服务异常|(%s)", srcMsg.c_str()).GetData()));
+	}
 
 	if (g_UserCodeToMsgTip.find(userCodeStr) != g_UserCodeToMsgTip.end())
 	{
@@ -382,7 +385,10 @@ std::pair<unsigned long, ErrMsgStruct> getErrMsgByRemark(std::string srcMsg)
 		return std::make_pair(userCode, curMsg);
 	}		
 	else
+	{
+		DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode("RTA42F1").setAPI(__FUNCTION__)("RTA42F1|错误映射异常|(%s)", srcMsg.c_str());
 		return std::make_pair(userCode, ErrMsgStruct("RTA42F1", CSimpleString::Format("RTA42F1|错误映射异常|(%s)", srcMsg.c_str()).GetData()));
+	}
 }
 
 std::pair<unsigned long, std::string> splitStrToUserCodeAndErrMsg(std::string srcMsg)