[Filesystem] - Remove error log when file is not found 29/103529/1
authorAndrzej Popowski <a.popowski@samsung.com>
Thu, 8 Dec 2016 13:51:36 +0000 (14:51 +0100)
committerAndrzej Popowski <a.popowski@samsung.com>
Thu, 8 Dec 2016 13:51:36 +0000 (14:51 +0100)
Change-Id: Ia8a0705ec93e7250ee6cbb3839a6b533fbca8591
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/filesystem/filesystem_stat.cc

index f90b37d11ec592586d7731232ebf4362aa84510f..b5b7791be7721bae078b260e95f6c979ab541f1d 100755 (executable)
@@ -66,10 +66,11 @@ FilesystemStat FilesystemStat::getStat(const std::string& path) {
   LoggerD("enter");
 
   if (0 != stat(path.c_str(), &aStatObj)) {
-    LoggerE("Failed to stat: (%d) %s", errno, GetErrorString(errno).c_str());
     if (ENOENT == errno) {
+      LoggerI("File/directory: %s not found", path.c_str());
       _result.error = FilesystemError::NotFound;
     } else {
+      LoggerE("Failed to stat: (%d) %s", errno, GetErrorString(errno).c_str());
       _result.error = FilesystemError::InvalidValue;
     }
     return _result;