From aba6d255f696272a633764796410cb9a9534c593 Mon Sep 17 00:00:00 2001 From: Gavriel Fleischer Date: Wed, 9 Jan 2019 11:13:44 +0200 Subject: fixed log order --- src/org/traccar/MainEventHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org') 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(","))); } -- cgit v1.2.3