trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1164739 - /trafficserver/traffic/trunk/proxy/http/HttpTransact.cc
Date Fri, 02 Sep 2011 22:09:35 GMT
Author: zwoop
Date: Fri Sep  2 22:09:35 2011
New Revision: 1164739

URL: http://svn.apache.org/viewvc?rev=1164739&view=rev
Log:
Fewer logs on server conn retry

Modified:
    trafficserver/traffic/trunk/proxy/http/HttpTransact.cc

Modified: trafficserver/traffic/trunk/proxy/http/HttpTransact.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http/HttpTransact.cc?rev=1164739&r1=1164738&r2=1164739&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http/HttpTransact.cc (original)
+++ trafficserver/traffic/trunk/proxy/http/HttpTransact.cc Fri Sep  2 22:09:35 2011
@@ -3734,9 +3734,10 @@ HttpTransact::retry_server_connection_no
   // on the first connect attempt failure //
   // record the failue                   //
   //////////////////////////////////////////
-  Log::error("CONNECT:[%d] could not connect [%s] to %u.%u.%u.%u for '%s'", s->current.attempts,
-             HttpDebugNames::get_server_state_name(conn_state),
-             PRINT_IP(s->current.server->ip), url_string ? url_string : "<none>");
+  if (0 == s->current.attempts)
+    Log::error("CONNECT:[%d] could not connect [%s] to %u.%u.%u.%u for '%s'", s->current.attempts,
+               HttpDebugNames::get_server_state_name(conn_state),
+               PRINT_IP(s->current.server->ip), url_string ? url_string : "<none>");
 
   if (url_string) {
     s->arena.str_free(url_string);



Mime
View raw message