Skip to content
Snippets Groups Projects
Commit 70d49173 authored by cramakri's avatar cramakri
Browse files

LMS-1767 Improved logging.

SVN: 18655
parent 3eafa1c5
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,8 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor ...@@ -137,7 +137,8 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
private Object escapeObject(MethodInvocation methodInvocation, Object unescapedResult) private Object escapeObject(MethodInvocation methodInvocation, Object unescapedResult)
{ {
Object result = unescapedResult; Object result = unescapedResult;
escapeLog.info(methodInvocation.getMethod().getName() + " converting " // Need to log unescaped result here, since it might be modified below
escapeLog.debug(methodInvocation.getMethod().getName() + " converting "
+ unescapedResult); + unescapedResult);
if (unescapedResult instanceof String) if (unescapedResult instanceof String)
{ {
...@@ -154,8 +155,7 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor ...@@ -154,8 +155,7 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
// Escape the result objects // Escape the result objects
ReflectingStringEscaper.escapeDeep(unescapedResult); ReflectingStringEscaper.escapeDeep(unescapedResult);
} }
escapeLog.info(methodInvocation.getMethod().getName() + " converted to " escapeLog.debug(methodInvocation.getMethod().getName() + " converted to " + result);
+ unescapedResult);
return result; return result;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment