Add the log for debugging about certificate file set.
authorSungman Kim <ssungmai.kim@samsung.com>
Wed, 10 Apr 2013 01:37:18 +0000 (10:37 +0900)
committerGerrit Code Review <gerrit2@kim11>
Thu, 11 Apr 2013 02:18:58 +0000 (11:18 +0900)
[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

index 415ad9b..045ed3b 100755 (executable)
@@ -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<WKStringRef> certificateFileRef(AdoptWK, WKStringCreateWithUTF8CString(certificateFile));
     WKContextSetCertificateFile(context->wkContext(), certificateFileRef.get());