mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
self protected
This commit is contained in:
@@ -427,7 +427,14 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
|
||||
if (value == null) {
|
||||
lastSlowParameters[index] = "null";
|
||||
} else if (value instanceof String) {
|
||||
lastSlowParameters[index] = "'" + value.toString() + "'";
|
||||
String text = (String) value;
|
||||
if (text.length() > 100) {
|
||||
text = text.substring(0, 97);
|
||||
text = "'" + text + "...'";
|
||||
} else {
|
||||
text = "'" + text + "'";
|
||||
}
|
||||
lastSlowParameters[index] = text;
|
||||
} else if (value instanceof Number) {
|
||||
lastSlowParameters[index] = value.toString();
|
||||
} else if (value instanceof java.util.Date) {
|
||||
|
||||
Reference in New Issue
Block a user