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());