From 9ad1726c89c5daf8509e5b8ed38a9dec2fcad89b Mon Sep 17 00:00:00 2001 From: Sungman Kim Date: Wed, 10 Apr 2013 10:37:18 +0900 Subject: [PATCH] Add the log for debugging about certificate file set. [Title] Add the log for debugging. [Issue#] N/A [Problem] When the certificate file set has the problem, we should check the file size whether it is normal or not. [Cause] the log to check file size was missed. [Solution] Add the log. [SCMRequest] N/A Change-Id: I2f94f702fc7fd696b2cb9506b11b2e5460a350bb --- Source/WebKit2/UIProcess/API/efl/ewk_context.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp b/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp index 415ad9b..045ed3b 100755 --- a/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp +++ b/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp @@ -1571,8 +1571,12 @@ Eina_Bool ewk_context_certificate_file_set(Ewk_Context* context, const char* cer if (!context->setCertificateFile(certificateFile)) return true; - if (!fileExists(WTF::String::fromUTF8(certificateFile))) - LOG_ERROR("[Network] ewk_context_certificate_file_set certificateFile does not exist!\n"); + if (fileExists(WTF::String::fromUTF8(certificateFile))) { + long long fileSize = -1; + getFileSize(WTF::String::fromUTF8(certificateFile), fileSize); + TIZEN_LOGE("[Network] ewk_context_certificate_file_set certificateFile fileSize [%lld]\n", fileSize); + } else + TIZEN_LOGE("[Network] ewk_context_certificate_file_set certificateFile does not exist!\n"); WKRetainPtr certificateFileRef(AdoptWK, WKStringCreateWithUTF8CString(certificateFile)); WKContextSetCertificateFile(context->wkContext(), certificateFileRef.get()); -- 2.7.4