From 2150c54b5c769157a724137e98b967f426fff5ed Mon Sep 17 00:00:00 2001 From: Bakka Uday Kiran Date: Thu, 12 Jan 2023 12:01:42 +0530 Subject: [PATCH] [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 --- net/url_request/url_request_http_job.cc | 3 +++ third_party/blink/renderer/core/frame/location.cc | 1 + 2 files changed, 4 insertions(+) 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) { -- 2.7.4