summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_service.cc')
-rw-r--r--net/proxy/proxy_service.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index 40f4bd3..c8e8a7a 100644
--- a/net/proxy/proxy_service.cc
+++ b/net/proxy/proxy_service.cc
@@ -397,6 +397,9 @@ void ProxyService::ProcessPendingRequests(PacRequest* recent_req) {
in_progress_fetch_config_id_ = config_.id();
+ LOG(INFO) << "Starting fetch of PAC script " << pac_url
+ << " for config_id=" << in_progress_fetch_config_id_;
+
proxy_script_fetcher_->Fetch(
pac_url, &in_progress_fetch_bytes_, &proxy_script_fetcher_callback_);
return;
@@ -420,6 +423,12 @@ void ProxyService::OnScriptFetchCompletion(int result) {
DCHECK(IsFetchingPacScript());
DCHECK(!resolver_->does_fetch());
+ LOG(INFO) << "Completed PAC script fetch for config_id="
+ << in_progress_fetch_config_id_
+ << " with error " << ErrorToString(result)
+ << ". Fetched a total of " << in_progress_fetch_bytes_.size()
+ << " bytes";
+
// Notify the ProxyResolver of the new script data (will be empty string if
// result != OK).
InitPacThread();
@@ -540,6 +549,8 @@ void ProxyService::UpdateConfig() {
if (latest.Equals(config_))
return;
+ LOG(INFO) << "New proxy configuration was loaded:\n" << latest;
+
config_ = latest;
config_is_bad_ = false;