From: Andrzej Popowski Date: Thu, 8 Dec 2016 13:51:36 +0000 (+0100) Subject: [Filesystem] - Remove error log when file is not found X-Git-Tag: submit/tizen_3.0/20161209.094616~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1209f31f84047a8bf7c1de92bee418829d5bcd91;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Filesystem] - Remove error log when file is not found Change-Id: Ia8a0705ec93e7250ee6cbb3839a6b533fbca8591 Signed-off-by: Andrzej Popowski --- diff --git a/src/filesystem/filesystem_stat.cc b/src/filesystem/filesystem_stat.cc index f90b37d1..b5b7791b 100755 --- a/src/filesystem/filesystem_stat.cc +++ b/src/filesystem/filesystem_stat.cc @@ -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;