From b9e77b28c968d93f9a391bba4e1019c8d3ea7707 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 03 Oct 2013 15:07:42 +0000
Subject: [PATCH] Backport fix for OPENDJ-1168: Warning message displayed when heartbeat check fails with a bind connection pool
---
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java b/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
index 0eb6d38..0206717 100644
--- a/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
+++ b/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
@@ -493,8 +493,13 @@
* that the heart beat was aborted by a client-side close.
*/
if (!(error instanceof CancelledResultException)) {
- if (DEBUG_LOG.isLoggable(Level.WARNING)) {
- DEBUG_LOG.warning(String.format(
+ if (DEBUG_LOG.isLoggable(Level.FINE)) {
+ /*
+ * Log at fine level to avoid polluting the logs with
+ * benign password policy related errors. See OPENDJ-1168
+ * and OPENDJ-1167.
+ */
+ DEBUG_LOG.fine(String.format(
"Heartbeat failed for connection factory '%s': %s", factory, error
.getMessage()));
}
--
Gitblit v1.10.0