aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainEventHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-18 22:30:15 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-18 22:30:15 -0700
commitf458cbe473bdc49157415a8bfc6441afd86b670e (patch)
tree787a8c80cb6ad16c5aaae06ecf81ffbdec2fa126 /src/main/java/org/traccar/MainEventHandler.java
parent03169baaea991d3c343a65ebac3eb3242d743fd0 (diff)
downloadtrackermap-server-f458cbe473bdc49157415a8bfc6441afd86b670e.tar.gz
trackermap-server-f458cbe473bdc49157415a8bfc6441afd86b670e.tar.bz2
trackermap-server-f458cbe473bdc49157415a8bfc6441afd86b670e.zip
Option to force time override
Diffstat (limited to 'src/main/java/org/traccar/MainEventHandler.java')
-rw-r--r--src/main/java/org/traccar/MainEventHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/MainEventHandler.java b/src/main/java/org/traccar/MainEventHandler.java
index a8b53ff60..2309b1e70 100644
--- a/src/main/java/org/traccar/MainEventHandler.java
+++ b/src/main/java/org/traccar/MainEventHandler.java
@@ -45,10 +45,10 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter {
public MainEventHandler() {
String connectionlessProtocolList = Context.getConfig().getString("status.ignoreOffline");
if (connectionlessProtocolList != null) {
- connectionlessProtocols.addAll(Arrays.asList(connectionlessProtocolList.split(",")));
+ connectionlessProtocols.addAll(Arrays.asList(connectionlessProtocolList.split("[, ]")));
}
logAttributes.addAll(Arrays.asList(
- Context.getConfig().getString("logger.attributes", DEFAULT_LOGGER_ATTRIBUTES).split(",")));
+ Context.getConfig().getString("logger.attributes", DEFAULT_LOGGER_ATTRIBUTES).split("[, ]")));
}
@Override