mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support monitor
This commit is contained in:
@@ -150,19 +150,6 @@ public class Utils {
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
public static String toString(Throwable error) {
|
||||
if (error == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
StringWriter strWriter = new StringWriter();
|
||||
PrintWriter out = new PrintWriter(strWriter);
|
||||
error.printStackTrace(out);
|
||||
out.close();
|
||||
String text = strWriter.toString();
|
||||
return text;
|
||||
}
|
||||
|
||||
public static String toString(StackTraceElement[] stackTrace) {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (StackTraceElement item : stackTrace) {
|
||||
|
||||
Reference in New Issue
Block a user