[lsc-changes] r524 - lsc/trunk/src/main/java/org/lsc

jclarke at lsc-project.org jclarke at lsc-project.org
Mon Nov 30 22:16:33 CET 2009


Author: jclarke
Date: 2009-11-30 22:16:33 +0100 (Mon, 30 Nov 2009)
New Revision: 524

Modified:
   lsc/trunk/src/main/java/org/lsc/AbstractSynchronize.java
Log:
Fix logging of JndiModifications (this is a workaround but it works)

Modified: lsc/trunk/src/main/java/org/lsc/AbstractSynchronize.java
===================================================================
--- lsc/trunk/src/main/java/org/lsc/AbstractSynchronize.java	2009-11-30 21:15:19 UTC (rev 523)
+++ lsc/trunk/src/main/java/org/lsc/AbstractSynchronize.java	2009-11-30 21:16:33 UTC (rev 524)
@@ -448,7 +448,8 @@
 		LOGGER.debug(except.toString(), except);
 
 		if (jm != null) {
-			LOGGER.error(jm.toString());
+			// TODO Fix LdifLogger to avoid this
+			LOGGER.error("", jm);
 		}
 	}
 
@@ -490,7 +491,8 @@
 								jm.getDistinguishName(), syncName);
 		}
 
-		LSCStructuralLogger.DESTINATION.info(jm.toString());
+		// TODO Fix LdifLogger to avoid this
+		LSCStructuralLogger.DESTINATION.info("", jm);
 	}
 
 	/**
@@ -526,8 +528,9 @@
 				LSCStructuralLogger.DESTINATION.debug("Error: unknown changetype ({} for {})",
 								jm.getDistinguishName(), syncName);
 		}
-
-		LSCStructuralLogger.DESTINATION.debug(jm.toString());
+		
+		// TODO Fix LdifLogger to avoid this
+		LSCStructuralLogger.DESTINATION.debug("", jm);
 	}
 
 	/**



More information about the lsc-changes mailing list