Author: mturk
Date: Fri Oct 24 07:35:32 2008
New Revision: 707645
URL: http://svn.apache.org/viewvc?rev=707645&view=rev
Log:
Change logging attempts from ERROR to INFO. They can happen multiple times, so
log as ERROR only once
Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=707645&r1=707644&r2=707645&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Fri Oct 24 07:35:32
2008
@@ -1399,7 +1399,7 @@
/* No workers in error state.
* Somebody set them all to disabled?
*/
- jk_log(l, JK_LOG_ERROR,
+ jk_log(l, JK_LOG_INFO,
"All tomcat instances failed, no more workers "
"left for recovery (attempt=%d, retry=%d)",
attempt, retry);
@@ -1408,7 +1408,7 @@
}
}
else {
- jk_log(l, JK_LOG_ERROR,
+ jk_log(l, JK_LOG_INFO,
"All tomcat instances failed, no more workers "
"left (attempt=%d, retry=%d)",
attempt, retry);
@@ -1418,11 +1418,15 @@
}
attempt++;
}
- if ( recoverable == JK_TRUE ) {
+ if (recoverable == JK_TRUE) {
jk_log(l, JK_LOG_INFO,
"All tomcat instances are busy or in error state");
/* rc and http error must be set above */
}
+ if (rc == JK_FALSE) {
+ jk_log(l, JK_LOG_INFO,
+ "All tomcat instances failed, no more workers left");
+ }
if (prec && s->add_log_items) {
lb_add_log_items(s, lb_last_log_names, prec, l);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]