From: Bakka Uday Kiran Date: Thu, 12 Jan 2023 06:31:42 +0000 (+0530) Subject: [M108 Migration] Add debug log for network request X-Git-Tag: submit/tizen/20230227.160252~155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F286729%2F3;p=platform%2Fframework%2Fweb%2Fchromium-efl.git [M108 Migration] Add debug log for network request This patch adds debug log for network request. Reference: https://review.tizen.org/gerrit/277882 Change-Id: I018d3c4325cc1ab1310e3bf167c166308b379a67 Signed-off-by: Bakka Uday Kiran --- diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 0a622f7..5648a3f 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -1129,6 +1129,9 @@ void URLRequestHttpJob::OnStartCompleted(int result) { } else { // Even on an error, there may be useful information in the response // info (e.g. whether there's a cached copy). + LOG(ERROR) << "[NETWORK ERROR] Failing url : " << request_->url().spec() + << " Error code : " << result + << " Error message : " << ErrorToString(result); if (transaction_.get()) response_info_ = transaction_->GetResponseInfo(); NotifyStartError(result); diff --git a/third_party/blink/renderer/core/frame/location.cc b/third_party/blink/renderer/core/frame/location.cc index 9274084..4d516af 100644 --- a/third_party/blink/renderer/core/frame/location.cc +++ b/third_party/blink/renderer/core/frame/location.cc @@ -270,6 +270,7 @@ void Location::SetLocation(const String& url, return; } + LOG(INFO) << "Set location to url[" << url.Utf8().data() << "]"; V8DOMActivityLogger* activity_logger = V8DOMActivityLogger::CurrentActivityLoggerIfIsolatedWorld(); if (activity_logger) {