Commit 8141da5a authored by Nils Richerzhagen's avatar Nils Richerzhagen
Browse files

Added Debug output to Warning - helping to understand which

TransListener was overwritten.
parent 677f3e09
......@@ -552,7 +552,7 @@ public class ModularTransLayer implements SimHostComponent, TransportComponent,
public void setListener(TransProtocol protocol, TransMessageListener listener) {
if (transListeners.containsKey(protocol)) {
Monitor.log(ModularTransLayer.class, Level.WARN, "Overwriting an existing TransMessageListener for protocol %s.", protocol.toString());
Monitor.log(ModularTransLayer.class, Level.WARN, "Overwriting existing TransMessageListener %s with %s for protocol %s.", transListeners.get(protocol).getClass().getSimpleName(), listener.getClass().getSimpleName(), protocol.toString());
}
transListeners.put(protocol, listener);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment