From 2357e5a46f42f85602c5052ff49f76616136d32c Mon Sep 17 00:00:00 2001 From: Hyunbin Lee Date: Fri, 26 Apr 2013 15:59:57 +0900 Subject: [PATCH] Apply secure log Change-Id: Ic9a36202e8fe40ef5baa968ec47ccd5263c85dd2 Signed-off-by: Hyunbin Lee --- src/io/FIo_DirectoryImpl.cpp | 3 +-- src/io/FIo_FileUtil.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/io/FIo_DirectoryImpl.cpp b/src/io/FIo_DirectoryImpl.cpp index 6de6b7b..f5d207c 100644 --- a/src/io/FIo_DirectoryImpl.cpp +++ b/src/io/FIo_DirectoryImpl.cpp @@ -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; } diff --git a/src/io/FIo_FileUtil.cpp b/src/io/FIo_FileUtil.cpp index 52c8cd2..974a1d0 100644 --- a/src/io/FIo_FileUtil.cpp +++ b/src/io/FIo_FileUtil.cpp @@ -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; } -- 2.7.4