Bug 1260407 - added logging for proxy/pac to aid debugging, r=mcmanus
This commit is contained in:
@@ -216,12 +216,16 @@ private:
|
||||
|
||||
void DoCallback()
|
||||
{
|
||||
bool pacAvailable = true;
|
||||
if (mStatus == NS_ERROR_NOT_AVAILABLE && !mProxyInfo) {
|
||||
// If the PAC service is not avail (e.g. failed pac load
|
||||
// or shutdown) then we will be going direct. Make that
|
||||
// mapping now so that any filters are still applied.
|
||||
mPACString = NS_LITERAL_CSTRING("DIRECT;");
|
||||
mStatus = NS_OK;
|
||||
|
||||
LOG(("pac not available, use DIRECT\n"));
|
||||
pacAvailable = false;
|
||||
}
|
||||
|
||||
// Generate proxy info from the PAC string if appropriate
|
||||
@@ -239,7 +243,10 @@ private:
|
||||
else
|
||||
mProxyInfo = nullptr;
|
||||
|
||||
LOG(("pac thread callback %s\n", mPACString.get()));
|
||||
if(pacAvailable) {
|
||||
// if !pacAvailable, it was already logged above
|
||||
LOG(("pac thread callback %s\n", mPACString.get()));
|
||||
}
|
||||
if (NS_SUCCEEDED(mStatus))
|
||||
mPPS->MaybeDisableDNSPrefetch(mProxyInfo);
|
||||
mCallback->OnProxyAvailable(this, mChannel, mProxyInfo, mStatus);
|
||||
|
||||
Reference in New Issue
Block a user