Ver Fonte

增加日志输出 ;

scbc.sat2 há 5 anos atrás
pai
commit
57989be299
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      LogModule/LogModule/LogModule.cpp

+ 3 - 0
LogModule/LogModule/LogModule.cpp

@@ -87,7 +87,10 @@ void EnableWriteLog(bool bEnable)
 void SetCaselogPath(LPCTSTR lpCaselogPath)
 {
 	if ( lpCaselogPath == NULL || lpCaselogPath[0] == '\0')
+	{
+		Global::WriteTextLog(_T("日志路径无效"));
 		return;
+	}
 
 	Global::WriteTextLog(_T("设置日志路径:%s"), lpCaselogPath);
 	_stprintf_s(Global::g_szLogPath, _T("%s"), lpCaselogPath);