From a06fd90c9b6bfb5f9130146373ba18e5769593b6 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 29 Jan 2014 11:30:37 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1288 : Migrate I18n and logging support to i18n framework and SLF4J
---
opendj3-server-dev/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java b/opendj3-server-dev/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
index f95c7d7..059f8da 100644
--- a/opendj3-server-dev/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
+++ b/opendj3-server-dev/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
@@ -726,7 +726,7 @@
// error + alert about the horked config
logger.traceException(e);
- logError(ERR_CONNHANDLER_CANNOT_ACCEPT_CONNECTION.get(friendlyName,
+ logger.error(ERR_CONNHANDLER_CANNOT_ACCEPT_CONNECTION.get(friendlyName,
String.valueOf(currentConfig.dn()), getExceptionMessage(e)));
if (lastIterationFailed)
@@ -739,7 +739,7 @@
ERR_CONNHANDLER_CONSECUTIVE_ACCEPT_FAILURES.get(friendlyName,
String.valueOf(currentConfig.dn()),
stackTraceToSingleLineString(e));
- logError(message);
+ logger.error(message);
DirectoryServer.sendAlertNotification(this,
ALERT_TYPE_HTTP_CONNECTION_HANDLER_CONSECUTIVE_FAILURES, message);
@@ -764,7 +764,7 @@
if (HTTPAccessLogger.getHTTPAccessLogPublishers().isEmpty())
{
- logError(WARN_CONFIG_LOGGER_NO_ACTIVE_HTTP_ACCESS_LOGGERS.get());
+ logger.warn(WARN_CONFIG_LOGGER_NO_ACTIVE_HTTP_ACCESS_LOGGERS.get());
}
this.httpServer = createHttpServer();
@@ -775,7 +775,7 @@
logger.trace("Starting HTTP server...");
this.httpServer.start();
logger.trace("HTTP server started");
- logError(NOTE_CONNHANDLER_STARTED_LISTENING.get(handlerName));
+ logger.info(NOTE_CONNHANDLER_STARTED_LISTENING.get(handlerName));
}
private HttpServer createHttpServer()
@@ -933,7 +933,7 @@
this.httpServer.shutdownNow();
cleanUpHttpServer();
logger.trace("HTTP server stopped");
- logError(NOTE_CONNHANDLER_STOPPED_LISTENING.get(handlerName));
+ logger.info(NOTE_CONNHANDLER_STOPPED_LISTENING.get(handlerName));
}
}
--
Gitblit v1.10.0