From 19df65dd04f8f3bd8f76bdf3e061a6d242ed3c69 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 02 Oct 2013 14:39:39 +0000
Subject: [PATCH] Fix OPENDJ-176 - Use SLF4J for logging in the SDK Review CR-2404

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/PreReadRequestControl.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/PreReadRequestControl.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/PreReadRequestControl.java
index ca1d021..29d88ab 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/PreReadRequestControl.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/controls/PreReadRequestControl.java
@@ -147,13 +147,12 @@
                             attributes = emptyList();
                         }
                         reader.readEndSequence();
-                    } catch (final Exception ae) {
-                        StaticUtils.DEBUG_LOG
-                                .throwing("PreReadRequestControl", "decodeControl", ae);
+                    } catch (final Exception ex) {
+                        StaticUtils.CONTROLS_LOG.debug("Unable to read sequence", ex);
 
                         final LocalizableMessage message =
-                                ERR_PREREADREQ_CANNOT_DECODE_VALUE.get(ae.getMessage());
-                        throw DecodeException.error(message, ae);
+                                ERR_PREREADREQ_CANNOT_DECODE_VALUE.get(ex.getMessage());
+                        throw DecodeException.error(message, ex);
                     }
 
                     if (attributes.isEmpty()) {

--
Gitblit v1.10.0