mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
03.07.2013 b9e77b28c968d93f9a391bba4e1019c8d3ea7707
Backport fix for OPENDJ-1168: Warning message displayed when heartbeat check fails with a bind connection pool
1 files modified
9 ■■■■ changed files
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java 9 ●●●● patch | view | raw | blame | history
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()));
                    }