aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/DatabaseDataManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/DatabaseDataManager.java')
-rw-r--r--src/org/traccar/model/DatabaseDataManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/model/DatabaseDataManager.java b/src/org/traccar/model/DatabaseDataManager.java
index f56782b44..65a52d100 100644
--- a/src/org/traccar/model/DatabaseDataManager.java
+++ b/src/org/traccar/model/DatabaseDataManager.java
@@ -175,8 +175,10 @@ public class DatabaseDataManager implements DataManager {
} else {
queryAddPosition.setLong("power", null);
}
- } catch (XPathExpressionException ex) {
- Log.warning(ex);
+ } catch (XPathExpressionException e) {
+ Log.warning("Error in XML: " + position.getExtendedInfo(), e);
+ queryAddPosition.setLong("id", null);
+ queryAddPosition.setLong("power", null);
}
queryAddPosition.executeUpdate();