increase security log levels to error

This commit is contained in:
Yasser Zamani
2019-12-24 10:56:30 +03:30
parent 7dddaf5128
commit 93f9cf6bfa
2 changed files with 2 additions and 2 deletions
@@ -774,7 +774,7 @@ public class OgnlUtil {
} catch (OgnlException e) {
Throwable reason = e.getReason();
if (reason instanceof SecurityException) {
LOG.warn("Could not evaluate this expression due to security constraints: [{}]", name, e);
LOG.error("Could not evaluate this expression due to security constraints: [{}]", name, e);
}
String msg = "Caught OgnlException while setting property '" + name + "' on type '" + o.getClass().getName() + "'.";
Throwable exception = (reason == null) ? e : reason;
@@ -48,7 +48,7 @@ public class OgnlTool {
return ognlUtil.getValue(expr, ActionContext.getContext().getContextMap(), context);
} catch (OgnlException e) {
if (e.getReason() instanceof SecurityException) {
LOG.warn("Could not evaluate this expression due to security constraints: [{}]", expr, e);
LOG.error("Could not evaluate this expression due to security constraints: [{}]", expr, e);
}
return null;
}