First version after introduction of meaningful ids and Identifiable interface.
[xmlrouter] / listener / src / main / java / org / wamblee / xmlrouter / listener / LoggingEventListener.java
index 24c6be65c9333d571ab60f43e28dc291e40f0cff..2c917abdc03cda94b374e8623cc631c67cd642f7 100644 (file)
@@ -39,13 +39,11 @@ public class LoggingEventListener implements EventListener {
 
     @Override
     public void delivered(EventInfo aEvent, List<Transformation> aSequence,
-        long aDestinationId, String aDestinationName, boolean aSuccessFlag) {
+        String aDestinationId, boolean aSuccessFlag) {
         if (LOGGER.isLoggable(level)) {
-            LOGGER
-                .log(level, "event delivered: " + aEvent + ", sequence '" +
-                    getSequenceString(aSequence) + "', destinationId " +
-                    aDestinationId + ", destinationName '" + aDestinationName +
-                    "'");
+            LOGGER.log(level, "event delivered: " + aEvent + ", sequence '" +
+                getSequenceString(aSequence) + "', destinationId " +
+                aDestinationId + "'");
         }
     }
 
@@ -56,7 +54,7 @@ public class LoggingEventListener implements EventListener {
                 buf.append(", ");
             }
             Transformation transformation = aSequence.get(i);
-            buf.append(transformation.getName());
+            buf.append(transformation.getId());
             buf.append("(");
             buf.append(transformation.getFromType());
             buf.append("->");