Commit 16ff6816 authored by Gregory.Shrago's avatar Gregory.Shrago
Browse files

restore getThrowableText and add test

(cherry picked from commit 3d5cc0c7)
parent 37c1bd3a
Showing with 3 additions and 3 deletions
+3 -3
......@@ -50,7 +50,7 @@ public class ExceptionUtilRt {
private boolean skipping;
@Override
public void println(final String x) {
public void print(String x) {
boolean curSkipping = skipping;
if (x != null) {
if (!skipping && x.startsWith(skipPattern)) curSkipping = true;
......@@ -64,12 +64,12 @@ public class ExceptionUtilRt {
return;
}
if (x.startsWith(prefixProxy)) return;
super.println(x);
super.print(x);
}
}
};
aThrowable.printStackTrace(writer);
return stringWriter.getBuffer().toString();
return stringWriter.getBuffer().toString().trim();
}
private static String stripPackage(String x, int offset) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment