diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 12:37:04 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 12:37:04 -0800 |
commit | 152d8fe43e4e7c15308ea39a19ac6c10da871ef7 (patch) | |
tree | fbed659e0a3c13167c56e1fa0596d8661c1d7917 /src/main | |
parent | fd2f021ca0655424322a8f06ee5e91ac6641d044 (diff) | |
download | traccar-server-152d8fe43e4e7c15308ea39a19ac6c10da871ef7.tar.gz traccar-server-152d8fe43e4e7c15308ea39a19ac6c10da871ef7.tar.bz2 traccar-server-152d8fe43e4e7c15308ea39a19ac6c10da871ef7.zip |
Remove pretty JSON
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/Context.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java index e09504ecc..438c99a6d 100644 --- a/src/main/java/org/traccar/Context.java +++ b/src/main/java/org/traccar/Context.java @@ -20,8 +20,6 @@ import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr353.JSR353Module; import org.apache.velocity.app.VelocityEngine; import org.eclipse.jetty.util.URIUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.traccar.config.Config; import org.traccar.config.Keys; import org.traccar.database.AttributesManager; @@ -73,8 +71,6 @@ import java.util.Properties; public final class Context { - private static final Logger LOGGER = LoggerFactory.getLogger(Context.class); - private Context() { } @@ -286,9 +282,6 @@ public final class Context { objectMapper.registerModule(new JSR353Module()); objectMapper.setConfig( objectMapper.getSerializationConfig().without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)); - if (Context.getConfig().getBoolean("mapper.prettyPrintedJson")) { - objectMapper.enable(SerializationFeature.INDENT_OUTPUT); - } client = ClientBuilder.newClient().register(new ObjectMapperContextResolver()); |