From 96eaa516a85e620a6b76a64ffbe71cdc6037e026 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 13 Apr 2011 16:23:40 +0000
Subject: [PATCH] Initial fix for OpenDJ-97: Very many minor problems with the error logging for replication

---
 opends/src/server/org/opends/server/replication/server/ReplicationServer.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
index be198cf..38535e6 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -312,6 +312,12 @@
 
   void runListen()
   {
+    Message listenMsg = NOTE_REPLICATION_SERVER_LISTENING.get(
+        getServerId(),
+        listenSocket.getInetAddress().getHostAddress(),
+        listenSocket.getLocalPort());
+    logError(listenMsg);
+
     while ((shutdown == false) && (stopListen  == false))
     {
       // Wait on the replicationServer port.
@@ -517,7 +523,7 @@
       socket.connect(ServerAddr, 500);
 
       ReplicationServerHandler handler = new ReplicationServerHandler(
-          replSessionSecurity.createClientSession(remoteServerURL,
+          replSessionSecurity.createClientSession(
               socket,
               ReplSessionSecurity.HANDSHAKE_TIMEOUT),
               queueSize,

--
Gitblit v1.10.0