WW-4424 Fixes log message to properly report missing property
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f1c04d6f Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f1c04d6f Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f1c04d6f Branch: refs/heads/master Commit: f1c04d6f4d4f2af6244977a15714aca18fdc3224 Parents: ddac7f3 Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Tue Dec 23 22:18:30 2014 +0100 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Tue Dec 23 22:18:30 2014 +0100 ---------------------------------------------------------------------- .../src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/f1c04d6f/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java ---------------------------------------------------------------------- diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java index 48e5241..7fa70f7 100644 --- a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java +++ b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java @@ -331,7 +331,7 @@ public class OgnlValueStack implements Serializable, ValueStack, ClearableValueS Object ret = findInContext(expr); if (ret == null) { if (shouldLogMissingPropertyWarning(e)) { - LOG.warn("Could not find property [" + ((NoSuchPropertyException) e).getName() + "]"); + LOG.warn("Could not find property [#0]!", e, expr); } if (throwExceptionOnFailure) { throw new XWorkException(e);