Skip to content
Snippets Groups Projects
Commit c66060aa authored by buczekp's avatar buczekp
Browse files

[LMS-1767] log time spent on escaping only if it is greater than 100ms

SVN: 18739
parent 6b545d63
No related branches found
No related tags found
No related merge requests found
...@@ -65,8 +65,12 @@ public class ReflectingStringEscaper ...@@ -65,8 +65,12 @@ public class ReflectingStringEscaper
return null; return null;
} finally } finally
{ {
operationLog.info((System.currentTimeMillis() - time) + "ms for escaping " long timeSpent = System.currentTimeMillis() - time;
+ (bean == null ? "" : bean.getClass().getSimpleName())); if (timeSpent > 100)
{
operationLog.info((timeSpent) + "ms for escaping "
+ (bean == null ? "" : bean.getClass().getSimpleName()));
}
} }
} }
......
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