aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-16 22:15:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-16 22:15:46 +1300
commit957104cce7f6436e9033e3015515b6566084e073 (patch)
tree4d49d7042c333982ac76b20ffed7c4a6a03edcae /src/org
parent56f7c78bc1bafe4ca531eadedaf98db16e0e49d7 (diff)
downloadtrackermap-server-957104cce7f6436e9033e3015515b6566084e073.tar.gz
trackermap-server-957104cce7f6436e9033e3015515b6566084e073.tar.bz2
trackermap-server-957104cce7f6436e9033e3015515b6566084e073.zip
Use hex format for connection id
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index e5015ea9e..3a8d1f48f 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -66,7 +66,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
MessageEvent event = (MessageEvent) e;
StringBuilder msg = new StringBuilder();
- msg.append("[").append(e.getChannel().getId()).append(" : ");
+ msg.append("[").append(String.format("%08X", e.getChannel().getId())).append(": ");
msg.append(((InetSocketAddress) e.getChannel().getLocalAddress()).getPort());
msg.append((e instanceof DownstreamMessageEvent) ? " -> " : " <- ");