aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-09 06:18:50 -0800
committerGitHub <noreply@github.com>2019-01-09 06:18:50 -0800
commitc81cb7e51dca39baad01bcf0ee3a722257c1c15f (patch)
treedc92ed053850684d2ecdc14c385317c8852ed329 /src
parent7472cc0f97cf3d58fa9674881114f59fc5287676 (diff)
parentaba6d255f696272a633764796410cb9a9534c593 (diff)
downloadtraccar-server-c81cb7e51dca39baad01bcf0ee3a722257c1c15f.tar.gz
traccar-server-c81cb7e51dca39baad01bcf0ee3a722257c1c15f.tar.bz2
traccar-server-c81cb7e51dca39baad01bcf0ee3a722257c1c15f.zip
Merge pull request #4184 from flocsy/fix-log-order
fixed log order
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/MainEventHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java
index 76cb3e132..d4e1ff860 100644
--- a/src/org/traccar/MainEventHandler.java
+++ b/src/org/traccar/MainEventHandler.java
@@ -29,6 +29,7 @@ import org.traccar.model.Position;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.Set;
public class MainEventHandler extends ChannelInboundHandlerAdapter {
@@ -44,7 +45,7 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
if (connectionlessProtocolList != null) {
connectionlessProtocols.addAll(Arrays.asList(connectionlessProtocolList.split(",")));
}
- logEvents = new HashSet<>(Arrays.asList(
+ logEvents = new LinkedHashSet<>(Arrays.asList(
Context.getConfig().getString("logger.events", DEFAULT_LOGGER_EVENTS).split(",")));
}