From ea3ec244ffbfcaccfa0d54c0e42c96f613ddabe5 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Sun, 4 Aug 2013 01:23:41 +0000 Subject: [PATCH] add TRACE5 messages around each LDAP retry git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1510085 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ldap/util_ldap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 324242f563..b275afe166 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -971,6 +971,7 @@ start_over: "failed with server down"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } if (result == LDAP_TIMEOUT && failures == 0) { @@ -982,6 +983,7 @@ start_over: "failed with timeout"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } if (result != LDAP_SUCCESS) { @@ -1130,6 +1132,7 @@ start_over: ldc->reason = "ldap_compare_s() failed with server down"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } if (result == LDAP_TIMEOUT && failures == 0) { @@ -1140,6 +1143,7 @@ start_over: ldc->reason = "ldap_compare_s() failed with timeout"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } @@ -1247,6 +1251,7 @@ start_over: " down"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } if (result == LDAP_TIMEOUT && failures == 0) { @@ -1257,6 +1262,7 @@ start_over: ldc->reason = "ldap_search_ext_s() for subgroups failed with timeout"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } @@ -1725,6 +1731,7 @@ start_over: ldc->reason = "ldap_search_ext_s() for user failed with server down"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } @@ -1732,6 +1739,7 @@ start_over: ldc->reason = "ldap_search_ext_s() for user failed with timeout"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } @@ -1796,6 +1804,7 @@ start_over: ldap_msgfree(res); uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } @@ -1991,6 +2000,7 @@ start_over: ldc->reason = "ldap_search_ext_s() for user failed with server down"; uldap_connection_unbind(ldc); failures++; + ap_log_rerror(APLOG_MARK, APLOG_TRACE5, 0, r, "%s (attempt %d)", ldc->reason, failures); goto start_over; } -- 2.40.0