summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve <snkashis@users.noreply.github.com>2018-11-19 12:35:00 -0600
committerTobrun <tobrun@mapbox.com>2018-11-21 13:32:54 +0100
commit5c832c225f2ed4dcc417a993a3f3f5c6f2c1436d (patch)
tree9ef91f519c73fa1035b3d1274bfd490b4f52c35d
parenta89b6e51e2305220e57008072924dbfae045979c (diff)
downloadqtlocation-mapboxgl-5c832c225f2ed4dcc417a993a3f3f5c6f2c1436d.tar.gz
Add specific name logging in failure scenarios of PropertyValue
Hard to track down value/expression issues currently when they are not being named.
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyValue.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyValue.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyValue.java
index 4c2cc855a8..ddf85f3861 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyValue.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyValue.java
@@ -63,7 +63,7 @@ public class PropertyValue<T> {
? Expression.Converter.convert((JsonArray) value)
: (Expression) value;
} else {
- Logger.w(TAG, "not an expression, try PropertyValue#getValue()");
+ Logger.w(TAG, String.format("%s not an expression, try PropertyValue#getValue()", name));
return null;
}
}
@@ -88,7 +88,7 @@ public class PropertyValue<T> {
// noinspection unchecked
return value;
} else {
- Logger.w(TAG, "not a value, try PropertyValue#getExpression()");
+ Logger.w(TAG, String.format("%s not a value, try PropertyValue#getExpression()", name));
return null;
}
}
@@ -124,4 +124,4 @@ public class PropertyValue<T> {
public String toString() {
return String.format("%s: %s", name, value);
}
-} \ No newline at end of file
+}