diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 71f257541..5bebda925 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -66,7 +66,8 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { MessageEvent event = (MessageEvent) e; StringBuilder msg = new StringBuilder(); - msg.append("[").append(((InetSocketAddress) e.getChannel().getLocalAddress()).getPort()).append(" - "); + msg.append("[").append(((InetSocketAddress) e.getChannel().getLocalAddress()).getPort()); + msg.append((e instanceof DownstreamMessageEvent) ? " -> " : " <- "); msg.append(((InetSocketAddress) event.getRemoteAddress()).getAddress().getHostAddress()).append("]"); // Append hex message @@ -121,4 +122,4 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { return pipeline; } -}
\ No newline at end of file +} |