|
|
@@ -617,8 +617,11 @@ int ResourceWatcherFSM::ProcessFileDelete(CSimpleStringA rtaCode, LPCTSTR lpszPa
|
|
|
|
|
|
DWORD attrs = GetFileAttributesA(lpszPath);
|
|
|
if (attrs == INVALID_FILE_ATTRIBUTES)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("非法的路径:%s", lpszPath);
|
|
|
+ {
|
|
|
+ CSimpleStringA errMsg = CSimpleStringA::Format("Can not find path:[%s], GLE = %u.", lpszPath, GetLastError());
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode(rtaCode.GetData()).setAPI("DeleteFiles")(errMsg.GetData());
|
|
|
+ LogWarn(Severity_Middle, Error_Debug, LOG_WARN_FILE_DELETE_FAILED, errMsg.GetData());
|
|
|
+ nDelFailedCnt++;
|
|
|
}
|
|
|
else if (attrs & FILE_ATTRIBUTE_DIRECTORY) //文件夹类型
|
|
|
{
|