aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-23 19:12:24 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-23 19:12:24 +1300
commitfbba01063cf4f79d83d58700f1e19486c8b26f16 (patch)
tree0d2d16aee9afd9ecc6b1d68c102294f03e34943b /src
parent875823d890cb58ccbedae5b9c78170fbcc47106d (diff)
downloadtraccar-server-fbba01063cf4f79d83d58700f1e19486c8b26f16.tar.gz
traccar-server-fbba01063cf4f79d83d58700f1e19486c8b26f16.tar.bz2
traccar-server-fbba01063cf4f79d83d58700f1e19486c8b26f16.zip
Merge logging changes
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BasePipelineFactory.java5
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
+}