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/replication/plugin/EntryHistorical.java | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
index 83d4fd7..319d52f 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
@@ -28,7 +28,6 @@
import java.util.*;
-import org.forgerock.i18n.LocalizableMessage;
import org.opends.server.core.DirectoryServer;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.opends.server.replication.common.CSN;
@@ -40,7 +39,6 @@
import org.opends.server.util.TimeThread;
import static org.opends.messages.ReplicationMessages.*;
-import static org.opends.server.loggers.ErrorLogger.*;
import static org.opends.server.util.StaticUtils.*;
/**
@@ -684,10 +682,8 @@
* historical information is going to be kept.
* Log information for the repair tool.
*/
- LocalizableMessage message = ERR_UNKNOWN_ATTRIBUTE_IN_HISTORICAL.get(
- entry.getName().toNormalizedString(),
+ logger.error(ERR_UNKNOWN_ATTRIBUTE_IN_HISTORICAL, entry.getName().toNormalizedString(),
histVal.getAttrString());
- logError(message);
continue;
}
@@ -729,8 +725,7 @@
// Any exception happening here means that the coding of the historical
// information was wrong.
// Log an error and continue with an empty historical.
- LocalizableMessage message = ERR_BAD_HISTORICAL.get(entry.getName().toString());
- logError(message);
+ logger.error(ERR_BAD_HISTORICAL, entry.getName().toString());
}
/* set the reference to the historical information in the entry */
--
Gitblit v1.10.0