aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GeocoderHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/GeocoderHandler.java')
-rw-r--r--src/org/traccar/GeocoderHandler.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/GeocoderHandler.java b/src/org/traccar/GeocoderHandler.java
index 0f3ba4731..72f164948 100644
--- a/src/org/traccar/GeocoderHandler.java
+++ b/src/org/traccar/GeocoderHandler.java
@@ -18,13 +18,16 @@ package org.traccar;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.traccar.geocoder.Geocoder;
-import org.traccar.helper.Log;
import org.traccar.model.Position;
@ChannelHandler.Sharable
public class GeocoderHandler extends ChannelInboundHandlerAdapter {
+ private static final Logger LOGGER = LoggerFactory.getLogger(GeocoderHandler.class);
+
private final Geocoder geocoder;
private final boolean processInvalidPositions;
private final int geocoderReuseDistance;
@@ -63,7 +66,7 @@ public class GeocoderHandler extends ChannelInboundHandlerAdapter {
@Override
public void onFailure(Throwable e) {
- Log.warning("Geocoding failed", e);
+ LOGGER.warn("Geocoding failed", e);
ctx.fireChannelRead(position);
}
});