Add specific name logging in failure scenarios of PropertyValue

Hard to track down value/expression issues currently when they are not being named.
This commit is contained in:
Steve
2018-11-19 12:35:00 -06:00
committed by Tobrun
parent a89b6e51e2
commit 5c832c225f

View File

@@ -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);
}
}
}