diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-03-16 14:28:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-03-16 14:28:09 +1300 |
commit | 56f7c78bc1bafe4ca531eadedaf98db16e0e49d7 (patch) | |
tree | d1729cb9ba0a5d98d24ca549eda1ca32137d8904 /src/org/traccar | |
parent | b01e047c94413facd3bf67d2357bf6ddc2b76297 (diff) | |
download | trackermap-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.java | 3 |
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("]"); |