diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:13:49 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:13:49 +1300 |
commit | 2c6c6eccf2c45bf87e16c45e3bac9872f53c12c3 (patch) | |
tree | 480d52fafcd7331244e69b46dbd3283f36fef4b4 /src/org/traccar/location/UniversalLocationProvider.java | |
parent | de60cf9d75d669a8078df32f7e11bf7af1970777 (diff) | |
download | trackermap-server-2c6c6eccf2c45bf87e16c45e3bac9872f53c12c3.tar.gz trackermap-server-2c6c6eccf2c45bf87e16c45e3bac9872f53c12c3.tar.bz2 trackermap-server-2c6c6eccf2c45bf87e16c45e3bac9872f53c12c3.zip |
Implement geolocation error handling
Diffstat (limited to 'src/org/traccar/location/UniversalLocationProvider.java')
-rw-r--r-- | src/org/traccar/location/UniversalLocationProvider.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/location/UniversalLocationProvider.java b/src/org/traccar/location/UniversalLocationProvider.java index 7f7028545..63ab681e7 100644 --- a/src/org/traccar/location/UniversalLocationProvider.java +++ b/src/org/traccar/location/UniversalLocationProvider.java @@ -19,7 +19,6 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.ning.http.client.AsyncCompletionHandler; import com.ning.http.client.Response; import org.traccar.Context; -import org.traccar.helper.Log; import org.traccar.model.Network; import javax.json.Json; @@ -54,12 +53,11 @@ public class UniversalLocationProvider implements LocationProvider { @Override public void onThrowable(Throwable t) { - callback.onFailure(); + callback.onFailure(t); } }); } catch (JsonProcessingException e) { - Log.warning(e); - callback.onFailure(); + callback.onFailure(e); } } |