@@ -104,7 +104,7 @@ namespace core
104104 }
105105 catch ( std::exception& e )
106106 {
107- Log_Error (" %s" , e.what ());
107+ Log_Debug (" %s" , e.what ());
108108
109109 if ( pInFile )
110110 fclose (pInFile);
@@ -135,7 +135,7 @@ namespace core
135135 {
136136 if ( ::unlink (MBSFromTCS (pszFileName).c_str ()) < 0 )
137137 {
138- Log_Error (TEXT (" unlink(%s) failure, %d" ), pszFileName, errno);
138+ Log_Debug (TEXT (" unlink(%s) failure, %d" ), pszFileName, errno);
139139 return false ;
140140 }
141141
@@ -149,7 +149,7 @@ namespace core
149149 {
150150 if ( errno != EEXIST )
151151 {
152- Log_Error (TEXT (" mkdir(%s) failure, %d" ), pszPath, errno);
152+ Log_Debug (TEXT (" mkdir(%s) failure, %d" ), pszPath, errno);
153153 return false ;
154154 }
155155
@@ -164,7 +164,7 @@ namespace core
164164 {
165165 if ( ::rmdir (MBSFromTCS (pszPath).c_str ()) < 0 )
166166 {
167- Log_Error (TEXT (" rmdir(%s) failure, %d" ), pszPath, errno);
167+ Log_Debug (TEXT (" rmdir(%s) failure, %d" ), pszPath, errno);
168168 return false ;
169169 }
170170 return true ;
@@ -175,7 +175,7 @@ namespace core
175175 {
176176 if ( 0 == ::link (MBSFromTCS (pszTargetFilename).c_str (), MBSFromTCS (pszSymlinkFilename).c_str ()) )
177177 return true ;
178- Log_Error (" link failure, %d(%s)" , errno, strerror (errno));
178+ Log_Debug (" link failure, %d(%s)" , errno, strerror (errno));
179179 return false ;
180180 }
181181
@@ -192,7 +192,7 @@ namespace core
192192 std::string strTmp = Format (" /proc/%d/exe" , ::getpid ());
193193 char szPath[1024 ] = { 0x00 , };
194194 if ( ::readlink (strTmp.c_str (), szPath, 1024 ) < 0 )
195- Log_Error (" readlink(%s) failure, %d" , strTmp.c_str (), errno);
195+ Log_Debug (" readlink(%s) failure, %d" , strTmp.c_str (), errno);
196196 return TCSFromMBS (szPath);
197197#endif
198198 }
@@ -206,7 +206,7 @@ namespace core
206206 Dl_info stModuleInfo;
207207 if ( 0 == ::dladdr (hModule, &stModuleInfo) )
208208 {
209- Log_Error (" dladdr calling failure, hModule=0x%X" , hModule);
209+ Log_Debug (" dladdr calling failure, hModule=0x%X" , hModule);
210210 return TEXT (" " );
211211 }
212212
@@ -219,7 +219,7 @@ namespace core
219219 char * pszCWD = ::getcwd (NULL , 0 );
220220 if ( NULL == pszCWD )
221221 {
222- Log_Error (" getcwd failure, %d" , errno);
222+ Log_Debug (" getcwd failure, %d" , errno);
223223 return TEXT (" " );
224224 }
225225
@@ -234,7 +234,7 @@ namespace core
234234 std::string strNewPathA = MBSFromTCS (pszNewPath);
235235 if ( ::chdir (strNewPathA.c_str ()) < 0 )
236236 {
237- Log_Error (" chdir(%s) failure, %s" , strNewPathA.c_str (), strerror (errno));
237+ Log_Debug (" chdir(%s) failure, %s" , strNewPathA.c_str (), strerror (errno));
238238 return false ;
239239 }
240240 return true ;
@@ -254,14 +254,14 @@ namespace core
254254 struct stat stStat = { 0 , };
255255 if ( ::stat (strFilePath.c_str (), &stStat) < 0 )
256256 {
257- Log_Error (" ::stat(%s) has failed, %s" , strFilePath.c_str (), strerror (errno));
257+ Log_Debug (" ::stat(%s) has failed, %s" , strFilePath.c_str (), strerror (errno));
258258 continue ;
259259 }
260260
261261 if ( S_ISLNK (stStat.st_mode ) )
262262 {
263263 if ( ::lstat (strFilePath.c_str (), &stStat) < 0 )
264- Log_Error (" ::lstat(%s) has failed, %s" , strFilePath.c_str (), strerror (errno));
264+ Log_Debug (" ::lstat(%s) has failed, %s" , strFilePath.c_str (), strerror (errno));
265265 }
266266
267267 pFindData->bIsDirectory = S_ISDIR (stStat.st_mode );
@@ -287,7 +287,7 @@ namespace core
287287 DIR* pDir = ::opendir (strCurPath.c_str ());
288288 if ( NULL == pDir )
289289 {
290- Log_Error (" opendir(%s) operation failure, %s" , strCurPath.c_str (), strerror (errno));
290+ Log_Debug (" opendir(%s) operation failure, %s" , strCurPath.c_str (), strerror (errno));
291291 return NULL ;
292292 }
293293
0 commit comments