Reduce HTTP request retry log spam. Thought I'd done this in an

Mon, 29 Jul 2013 16:26:02 -0400

author
Monty Brandenberg <monty@lindenlab.com>
date
Mon, 29 Jul 2013 16:26:02 -0400
changeset 40700
3d802c6426bf
parent 40699
f0af522931fa
child 40701
708f569ab46b

Reduce HTTP request retry log spam. Thought I'd done this in an
earlier maintenance branch but the code never showed up. I'll do
it again. Spam is still available by bumping 'CoreHttp' tag up
to DEBUGS level logging. Needed for QA. Can also get this data
from tracing.

indra/llcorehttp/_httppolicy.cpp file | annotate | diff | revisions
     1.1 --- a/indra/llcorehttp/_httppolicy.cpp	Mon Jul 29 16:09:22 2013 -0400
     1.2 +++ b/indra/llcorehttp/_httppolicy.cpp	Mon Jul 29 16:26:02 2013 -0400
     1.3 @@ -162,15 +162,17 @@
     1.4  	{
     1.5  		++op->mPolicy503Retries;
     1.6  	}
     1.7 -	LL_WARNS("CoreHttp") << "HTTP request " << static_cast<HttpHandle>(op)
     1.8 -						 << " retry " << op->mPolicyRetries
     1.9 -						 << " scheduled in " << (delta / HttpTime(1000))
    1.10 -						 << " mS.  Status:  " << op->mStatus.toHex()
    1.11 -						 << LL_ENDL;
    1.12 +	LL_DEBUGS("CoreHttp") << "HTTP request " << static_cast<HttpHandle>(op)
    1.13 +						  << " retry " << op->mPolicyRetries
    1.14 +						  << " scheduled in " << (delta / HttpTime(1000))
    1.15 +						  << " mS.  Status:  " << op->mStatus.toHex()
    1.16 +						  << LL_ENDL;
    1.17  	if (op->mTracing > HTTP_TRACE_OFF)
    1.18  	{
    1.19  		LL_INFOS("CoreHttp") << "TRACE, ToRetryQueue, Handle:  "
    1.20  							 << static_cast<HttpHandle>(op)
    1.21 +							 << ", Delta:  " << (delta / HttpTime(1000))
    1.22 +							 << ", Retries:  " << op->mPolicyRetries
    1.23  							 << LL_ENDL;
    1.24  	}
    1.25  	mClasses[policy_class]->mRetryQueue.push(op);
    1.26 @@ -362,9 +364,9 @@
    1.27  	}
    1.28  	else if (op->mPolicyRetries)
    1.29  	{
    1.30 -		LL_WARNS("CoreHttp") << "HTTP request " << static_cast<HttpHandle>(op)
    1.31 -							 << " succeeded on retry " << op->mPolicyRetries << "."
    1.32 -							 << LL_ENDL;
    1.33 +		LL_DEBUGS("CoreHttp") << "HTTP request " << static_cast<HttpHandle>(op)
    1.34 +							  << " succeeded on retry " << op->mPolicyRetries << "."
    1.35 +							  << LL_ENDL;
    1.36  	}
    1.37  
    1.38  	op->stageFromActive(mService);

mercurial