aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-16 14:28:09 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-16 14:28:09 +1300
commit56f7c78bc1bafe4ca531eadedaf98db16e0e49d7 (patch)
treed1729cb9ba0a5d98d24ca549eda1ca32137d8904 /src/org/traccar
parentb01e047c94413facd3bf67d2357bf6ddc2b76297 (diff)
downloadtrackermap-server-56f7c78bc1bafe4ca531eadedaf98db16e0e49d7.tar.gz
trackermap-server-56f7c78bc1bafe4ca531eadedaf98db16e0e49d7.tar.bz2
trackermap-server-56f7c78bc1bafe4ca531eadedaf98db16e0e49d7.zip
Add channel ids to logs
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/BasePipelineFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 585f3e273..e5015ea9e 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());
+ msg.append("[").append(e.getChannel().getId()).append(" : ");
+ msg.append(((InetSocketAddress) e.getChannel().getLocalAddress()).getPort());
msg.append((e instanceof DownstreamMessageEvent) ? " -> " : " <- ");
msg.append(((InetSocketAddress) event.getRemoteAddress()).getAddress().getHostAddress()).append("]");