Apply secure log
authorHyunbin Lee <hyunbin.lee@samsung.com>
Fri, 26 Apr 2013 06:59:57 +0000 (15:59 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Fri, 26 Apr 2013 07:00:15 +0000 (16:00 +0900)
Change-Id: Ic9a36202e8fe40ef5baa968ec47ccd5263c85dd2
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/io/FIo_DirectoryImpl.cpp
src/io/FIo_FileUtil.cpp

index 6de6b7b..f5d207c 100644 (file)
@@ -92,7 +92,7 @@ _DirectoryImpl::Construct(const String& dirPath)
        if (__pDir == null)
        {
                r = _NativeError::ConvertNativeErrorToResult(errno, true);
-               SysLog(NID_IO, "[%s] Failed to open directory (%s).", GetErrorMessage(r), pDirPath.get());
+               SysSecureLogException(NID_IO, r, "[%s] Failed to open directory (%s).", GetErrorMessage(r), pDirPath.get());
                goto CATCH;
        }
 
@@ -101,7 +101,6 @@ _DirectoryImpl::Construct(const String& dirPath)
        return E_SUCCESS;
 
 CATCH:
-
        return r;
 }
 
index 52c8cd2..974a1d0 100644 (file)
@@ -104,7 +104,7 @@ _FileUtil::Remove(const String& filePath)
 
        if (_FileUtil::IsFileExist(pFilePath.get()) == false)
        {
-               SysLog(NID_IO, "[E_FILE_NOT_FOUND] File(%s) does not exist.", pFilePath.get());
+               SysSecureLogException(NID_IO, E_FILE_NOT_FOUND, "[E_FILE_NOT_FOUND] File (%s) does not exist.", pFilePath.get());
                return E_FILE_NOT_FOUND;
        }