浏览代码

增加日志输出 ;

scbc.sat2 5 年之前
父节点
当前提交
57989be299
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);