Pārlūkot izejas kodu

#IQRV #comment Level2 错误码整改

gifur 3 gadi atpakaļ
vecāks
revīzija
a2822b006c

+ 4 - 4
Module/mod_CenterSetting/mod_centersetting.cpp

@@ -139,16 +139,16 @@ void CCenterSettingEntity::OnStarted()
          CSimpleStringA strLastErrInfo(true);
          const ErrorCodeEnum rc = microHelper.GetCenterSetting(strLastErrInfo);
          if (rc != Error_Succeed) {
-             LogWarn(Severity_Middle, rc, ERR_MOD_CENTERSETTING_CONNECT_FAILED, 
+             LogWarn(Severity_Low, rc, ERR_MOD_CENTERSETTING_CONNECT_FAILED,
                      CSimpleStringA::Format("Get centersetting failed:%s", strLastErrInfo.GetData()));
          } else {
              if (SP::Module::Comm::Settings::IsUsingSubBranchServerConfig(this)) {
-                 LogWarn(Severity_Middle, Error_Debug, ERR_MOD_CENTERSETTING_CHANGE_FROM_SUB2HEADBRANCH, "CenterSetting Source Change: from branch to head");
+                 LogWarn(Severity_Low, Error_Debug, ERR_MOD_CENTERSETTING_CHANGE_FROM_SUB2HEADBRANCH, "CenterSetting Source Change: from branch to head");
              } else if (!SP::Module::Comm::Settings::IsUsingHeadBranchServices(this)) {
-                 LogWarn(Severity_Middle, Error_Debug, ERR_MOD_CENTERSETTING_CHANGE_FROM_NONE2HEADBRANCH, "CenterSetting Source Change: from unknown to head");
+                 LogWarn(Severity_Low, Error_Debug, ERR_MOD_CENTERSETTING_CHANGE_FROM_NONE2HEADBRANCH, "CenterSetting Source Change: from unknown to head");
              }
              SP::Module::Comm::Settings::StoreHeadBranchServicesMode(this, TRUE);
-             LogWarn(Severity_Middle, Error_Succeed, EVENT_MOD_CENTERSETTING_CONNECT_SUCC, 
+             LogWarn(Severity_Low, Error_Succeed, EVENT_MOD_CENTERSETTING_CONNECT_SUCC,
                      CSimpleStringA::Format("Get centersetting succ: %s", strLastErrInfo.GetData()));
          }
          ReturnAndClearDownloadContext(rc);

+ 1 - 1
Module/mod_Initializer/mod_Initializer.cpp

@@ -93,7 +93,7 @@ void CInitializerEntity::OnStarted()
 	m_FSM.Init(this);
 	m_bACS = true;
 	///**TODO(Gifur@3/24/2022): 需要同步改初始化页面,安装时重启初始化实体的事后操作也可以裁剪掉 */
-	LogWarn(Severity_Middle, Error_Unexpect, Initializer_UserErrorCode_Init_ACS, "强制走总行");
+	LogWarn(Severity_Low, Error_Unexpect, Initializer_UserErrorCode_Init_ACS, "强制走总行");
 }
 
 void CInitializerEntity::OnPaused() 

+ 2 - 2
Module/mod_UpgradeMgr/mod_UpgradeMgr.cpp

@@ -140,10 +140,10 @@ namespace Task
 			}
 			
 			if (Mgr->bNewUpgradeMgr) {
-				LogWarn(Severity_Middle, Error_Exception, WARN_TASK_START_NEW_MODE, "init new upgradeTaskMgr");
+				LogWarn(Severity_Low, Error_Exception, WARN_TASK_START_NEW_MODE, "init new upgradeTaskMgr");
 			}
 			else {
-				LogWarn(Severity_Middle, Error_Exception, WARN_TASK_START_OLD_MODE, "init old upgradeTaskMgr");
+				LogWarn(Severity_Low, Error_Exception, WARN_TASK_START_OLD_MODE, "init old upgradeTaskMgr");
 			}
 
 			if(Mgr->bNewUpgradeMgr){

+ 15 - 15
Module/mod_accessauth/AccessAuthFSM.cpp

@@ -159,11 +159,11 @@ struct StageReportTask :public ITaskSp {
                         const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                         pos = (++times) * each_size;
                         contents.push_back(elem);
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                 CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                     }
                 } else {
-                    LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                    LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                 }
             }
             Dbg("StageReport Connect Failed(%d).", result.statusCode);
@@ -291,11 +291,11 @@ struct TimeSynTask : ITaskSp {
 						const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
 						pos = (++times) * each_size;
 						contents.push_back(elem);
-						LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, 
+						LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
 								CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
 					}
 				} else {
-                    LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                    LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
 				}
 			}
             m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -415,11 +415,11 @@ struct LockStateTask : ITaskSp {
                         const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                         pos = (++times) * each_size;
                         contents.push_back(elem);
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                 CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                     }
                 } else {
-                    LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                    LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                 }
             }
             m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -569,11 +569,11 @@ struct UpdateWKTask : ITaskSp {
                             const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                             pos = (++times) * each_size;
                             contents.push_back(elem);
-                            LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                            LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                     CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                         }
                     } else {
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                     }
                 }
                 m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -649,11 +649,11 @@ struct UpdateWKTask : ITaskSp {
                         const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                         pos = (++times) * each_size;
                         contents.push_back(elem);
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                 CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                     }
                 } else {
-                    LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                    LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                 }
             }
             m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -851,11 +851,11 @@ struct GetTokenTask : ITaskSp {
                             const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                             pos = (++times) * each_size;
                             contents.push_back(elem);
-                            LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                            LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                     CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                         }
                     } else {
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                     }
                 }
                 m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -1028,11 +1028,11 @@ struct InitDeviceTask :public ITaskSp {
                         const std::string elem = tmpDetail.substr(pos, (len - pos) > each_size ? each_size : std::string::npos);
                         pos = (++times) * each_size;
                         contents.push_back(elem);
-                        LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
+                        LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO,
                                 CSimpleStringA::Format("[%d]%s", times, elem.c_str()));
                     }
                 } else {
-                    LogWarn(Severity_Middle, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
+                    LogWarn(Severity_Low, Error_Debug, ERROR_ACCESSAUTH_ACS_DIGINFO, errDetail.c_str());
                 }
             }
             m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
@@ -1164,7 +1164,7 @@ void CAccessAuthFSM::s1_on_entry()
 		return;
 	}
 
-	LogWarn(Severity_Middle, Error_Unexpect, AccessAuthorization_UserErrorCode_ACS_TURE, "Force gray say:come,come,come to ACS.");
+	LogWarn(Severity_Low, Error_Unexpect, AccessAuthorization_UserErrorCode_ACS_TURE, "Force gray say:come,come,come to ACS.");
 	m_bAccessACS = true;
 }
 

+ 1 - 1
Module/mod_cardissuer/CardIssuerFSM.cpp

@@ -2390,7 +2390,7 @@ int CCardIssuerFSM::UnAcceptCard()
 				preFixNo = m_currCardNo.SubString(0, 6);
 				suffixNo = m_currCardNo.SubString(m_currCardNo.GetLength() - 4, 4);
 			}
-            LogWarn(Severity_Middle, Error_Unexpect, CardIssuer_UserErrorCode_HasCard_In_Machine, 
+            LogWarn(Severity_Low, Error_Unexpect, CardIssuer_UserErrorCode_HasCard_In_Machine,
 					CSimpleStringA::Format("Detect Card In Device:%d, CardNoLength:%d, CardNo:%s****%s",
 										   m_issueStatus, m_currCardNo.GetLength(), preFixNo.GetData(), suffixNo.GetData()));
 

+ 4 - 4
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -2268,7 +2268,7 @@ void CHealthManagerEntity::OnSysVarEvent(const char *pszKey, const char *pszValu
 			{
 				m_bHaveThrowMainPage = true;
 				Dbg("the first enter main page from HealthManger started.");
-				LogEvent(Severity_Middle, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
+				LogEvent(Severity_Low, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
 					, "first enter main page from HealthManager started.");
 
 
@@ -2277,7 +2277,7 @@ void CHealthManagerEntity::OnSysVarEvent(const char *pszKey, const char *pszValu
 				CSimpleStringA shellVersion(true);
 				spConfigShell->ReadConfigValue("Main", "SoftwareVersion", shellVersion);
 
-				LogWarn(Severity_Middle, Error_Unexpect,LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
+				LogWarn(Severity_Low, Error_Unexpect,LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
 					, CSimpleStringA::Format("First enter main page from HealthManger started: %s, test: %s", 
 											 m_sysStaticInfo.InstallVersion.ToString().GetData(), shellVersion.GetData()));
 			}
@@ -2286,8 +2286,8 @@ void CHealthManagerEntity::OnSysVarEvent(const char *pszKey, const char *pszValu
 				Dbg("the first enter main page from browser started.");
 				m_bBrowserIdleFirst = false;
 				m_bEnterMainPageEver = true;
-				LogEvent(Severity_Middle, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE, "enter main page");
-				LogWarn(Severity_Middle, Error_Unexpect, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE, 
+				LogEvent(Severity_Low, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE, "enter main page");
+				LogWarn(Severity_Low, Error_Unexpect, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE,
 						CSimpleStringA::Format("first enter main page  from browser started: %s", m_sysStaticInfo.InstallVersion.ToString().GetData()));
 				spConfigRun->WriteConfigValueInt("Run", "UpgradeRestartTimes", 0);
 				Dbg("As have been in main page,reset UpgradeRestartTimes.");

+ 0 - 1
Module/mod_upload/UploadFSM.cpp

@@ -2611,7 +2611,6 @@ void UploadFSM::reportBatchMsg()
 			m_uploadReport.operateFileFail, m_uploadReport.decodeFail, m_uploadReport.queryTempFail);
 		LogWarn(Severity_Middle, Error_Unexpect, LOG_WARN_UPLOAD_FILE_REPORT, strReport.GetData());
 	}
-	//LogWarn(Severity_Middle, Error_Unexpect, LOG_WARN_UPLOAD_FILE_REPORT, strReport.GetData());
 }
 
 /**  交易受限功能代码废弃