diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:51:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:51:29 +1200 |
commit | fa26dd5f14a991f327c26517a645c6b4f77c4a73 (patch) | |
tree | 26477b69c3aeca4cba7b6947cf6973d762841cda /src/org/traccar/processing/ComputedAttributesHandler.java | |
parent | 2fb444df86d56246a8b5cee515eb91490c8dee05 (diff) | |
download | trackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.tar.gz trackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.tar.bz2 trackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.zip |
Provide error messages
Diffstat (limited to 'src/org/traccar/processing/ComputedAttributesHandler.java')
-rw-r--r-- | src/org/traccar/processing/ComputedAttributesHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/processing/ComputedAttributesHandler.java b/src/org/traccar/processing/ComputedAttributesHandler.java index d4090e709..c346661d3 100644 --- a/src/org/traccar/processing/ComputedAttributesHandler.java +++ b/src/org/traccar/processing/ComputedAttributesHandler.java @@ -80,7 +80,7 @@ public class ComputedAttributesHandler extends BaseDataHandler { } } } catch (IllegalAccessException | InvocationTargetException error) { - LOGGER.warn(null, error); + LOGGER.warn("Attribute reflection error", error); } } } @@ -101,7 +101,7 @@ public class ComputedAttributesHandler extends BaseDataHandler { try { result = computeAttribute(attribute, position); } catch (JexlException error) { - LOGGER.warn(null, error); + LOGGER.warn("Attribute computation error", error); } if (result != null) { try { @@ -118,7 +118,7 @@ public class ComputedAttributesHandler extends BaseDataHandler { position.getAttributes().put(attribute.getAttribute(), result.toString()); } } catch (ClassCastException error) { - LOGGER.warn(null, error); + LOGGER.warn("Attribute cast error", error); } } } |