Răsfoiți Sursa

!10774 去掉握手时返回Error_DevNotAvaible时的交易码及日志记录
Merge pull request !10774 from 80174847/oilyang_fixed_everything

杨诗友80174847 3 luni în urmă
părinte
comite
d264b33f0e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      Module/mod_healthmanager/mod_healthmanager.cpp

+ 3 - 1
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -1561,7 +1561,9 @@ void CHealthManagerEntity::OnAnswer(CSmartPointer<IAsynWaitSp> pAsynWaitSp)
 			msgInfo["SelfTestReturnCode"] = SpStrError(new_entry->ErrorResult);
 			std::pair<bool, std::string> strResult;
 			strResult = generateJsonStr(msgInfo);
-			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402501S2")(strResult.second.c_str());
+			//oilyang@20250604 don't log "Error_DevNotAvailable" any more
+			if (new_entry->ErrorResult != Error_DevNotAvailable)
+				DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402501S2")(strResult.second.c_str());
 		}
 	}
 }