diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:08:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:08:33 -0800 |
commit | 7f0692101a017f33ffb984e6df92e5dbef6ce71b (patch) | |
tree | 7b842f9372a2b07d5fea9d0ceb8762130153183c /src/main/java/org/traccar/MainEventHandler.java | |
parent | f94951e7e78956b2bbd438665ff290a472afde76 (diff) | |
download | trackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.tar.gz trackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.tar.bz2 trackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.zip |
Migrate logger keys
Diffstat (limited to 'src/main/java/org/traccar/MainEventHandler.java')
-rw-r--r-- | src/main/java/org/traccar/MainEventHandler.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/MainEventHandler.java b/src/main/java/org/traccar/MainEventHandler.java index 285f6f57c..df17dce0b 100644 --- a/src/main/java/org/traccar/MainEventHandler.java +++ b/src/main/java/org/traccar/MainEventHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2012 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import io.netty.handler.codec.http.HttpRequestDecoder; import io.netty.handler.timeout.IdleStateEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.traccar.config.Keys; import org.traccar.database.StatisticsManager; import org.traccar.helper.DateUtil; import org.traccar.model.Position; @@ -37,8 +38,6 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter { private static final Logger LOGGER = LoggerFactory.getLogger(MainEventHandler.class); - private static final String DEFAULT_LOGGER_ATTRIBUTES = "time,position,speed,course,accuracy,result"; - private final Set<String> connectionlessProtocols = new HashSet<>(); private final Set<String> logAttributes = new LinkedHashSet<>(); @@ -48,7 +47,7 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter { connectionlessProtocols.addAll(Arrays.asList(connectionlessProtocolList.split("[, ]"))); } logAttributes.addAll(Arrays.asList( - Context.getConfig().getString("logger.attributes", DEFAULT_LOGGER_ATTRIBUTES).split("[, ]"))); + Context.getConfig().getString(Keys.LOGGER_ATTRIBUTES).split("[, ]"))); } @Override |