From 9d1e0a2b58c07ff470a8678f458ed29d69d9223d Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Mon, 05 May 2014 13:32:02 +0000
Subject: [PATCH] OPENDJ-1303 "opendj-cli" - Fixed log warnings / info.
---
opendj-cli/src/main/java/com/forgerock/opendj/cli/ApplicationKeyManager.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/ApplicationKeyManager.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/ApplicationKeyManager.java
index f8b5a87..398559c 100755
--- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/ApplicationKeyManager.java
+++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/ApplicationKeyManager.java
@@ -36,14 +36,14 @@
import java.security.PrivateKey;
import java.security.UnrecoverableKeyException;
import java.security.cert.X509Certificate;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
import javax.net.ssl.KeyManager;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509KeyManager;
+import org.forgerock.i18n.LocalizableMessage;
+import org.forgerock.i18n.slf4j.LocalizedLogger;
+
/**
* This class is in charge of checking whether the certificates that are
* presented are trusted or not. This implementation tries to check also that
@@ -58,7 +58,7 @@
* parallel.
*/
final class ApplicationKeyManager implements X509KeyManager {
- private static final Logger LOG = Logger.getLogger(ApplicationKeyManager.class.getName());
+ private static final LocalizedLogger LOG = LocalizedLogger.getLoggerForThisClass();
/**
* The default keyManager.
@@ -125,19 +125,19 @@
} catch (final NoSuchAlgorithmException e) {
// Nothing to do. Maybe we should avoid this and be strict, but
// we are in a best effort mode.
- LOG.log(Level.WARNING, "Error with the algorithm", e);
+ LOG.warn(LocalizableMessage.raw("Error with the algorithm", e));
} catch (final KeyStoreException e) {
// Nothing to do. Maybe we should avoid this and be strict, but
// we are in a best effort mode..
- LOG.log(Level.WARNING, "Error with the keystore", e);
+ LOG.warn(LocalizableMessage.raw("Error with the keystore", e));
} catch (final UnrecoverableKeyException e) {
// Nothing to do. Maybe we should avoid this and be strict, but
// we are in a best effort mode.
- LOG.log(Level.WARNING, "Error with the key", e);
+ LOG.warn(LocalizableMessage.raw("Error with the key", e));
} catch (final NoSuchProviderException e) {
// Nothing to do. Maybe we should avoid this and be strict, but
// we are in a best effort mode.
- LOG.log(Level.WARNING, "Error with the provider", e);
+ LOG.warn(LocalizableMessage.raw("Error with the provider", e));
}
}
}
--
Gitblit v1.10.0