[M108 Migration] Add debug log for network request 29/286729/3
authorBakka Uday Kiran <b.kiran@samsung.com>
Thu, 12 Jan 2023 06:31:42 +0000 (12:01 +0530)
committerBot Blink <blinkbot@samsung.com>
Thu, 12 Jan 2023 12:08:12 +0000 (12:08 +0000)
This patch adds debug log for network request.

Reference:
https://review.tizen.org/gerrit/277882

Change-Id: I018d3c4325cc1ab1310e3bf167c166308b379a67
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
net/url_request/url_request_http_job.cc
third_party/blink/renderer/core/frame/location.cc

index 0a622f7..5648a3f 100644 (file)
@@ -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);
index 9274084..4d516af 100644 (file)
@@ -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) {