aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavriel Fleischer <flocsy@gmail.com>2019-01-08 10:55:50 +0200
committerGavriel Fleischer <flocsy@gmail.com>2019-01-08 10:55:50 +0200
commit4f2b8116b74bc1c2a714bc4143e1b460882b2507 (patch)
tree9d0d7e176a6afff2a521b06862620599a655eb1c /src
parent48f3c2ef839fae5d7046da61c8ec683d0a3d2dfb (diff)
downloadtrackermap-server-4f2b8116b74bc1c2a714bc4143e1b460882b2507.tar.gz
trackermap-server-4f2b8116b74bc1c2a714bc4143e1b460882b2507.tar.bz2
trackermap-server-4f2b8116b74bc1c2a714bc4143e1b460882b2507.zip
use Java api
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/MainEventHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java
index 5e2870d57..3a9f5ee41 100644
--- a/src/org/traccar/MainEventHandler.java
+++ b/src/org/traccar/MainEventHandler.java
@@ -15,7 +15,6 @@
*/
package org.traccar;
-import com.google.common.collect.Sets;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
@@ -45,7 +44,7 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
if (connectionlessProtocolList != null) {
connectionlessProtocols.addAll(Arrays.asList(connectionlessProtocolList.split(",")));
}
- logEvents = Sets.newHashSet(Context.getConfig().getString("logger.events", DEFAULT_LOGGER_EVENTS).split(","));
+ logEvents = new HashSet<>(Arrays.asList(Context.getConfig().getString("logger.events", DEFAULT_LOGGER_EVENTS).split(",")));
}
@Override
@@ -60,6 +59,7 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
}
String uniqueId = Context.getIdentityManager().getById(position.getDeviceId()).getUniqueId();
+
// Log position
StringBuilder s = new StringBuilder();
s.append(formatChannel(ctx.channel())).append(" ");