mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1093137 - Log stack trace for Robocop exceptions; r=chmanchester
This commit is contained in:
parent
143beddf8f
commit
7c034418cd
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
package org.mozilla.gecko;
|
package org.mozilla.gecko;
|
||||||
|
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
import java.io.StringWriter;
|
||||||
|
import java.io.Writer;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
@ -34,7 +37,10 @@ public class FennecMochitestAssert implements Assert {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void dumpLog(String message, Throwable t) {
|
public void dumpLog(String message, Throwable t) {
|
||||||
mLogger.error(message + " - " + t.toString());
|
Writer sw = new StringWriter();
|
||||||
|
PrintWriter pw = new PrintWriter(sw);
|
||||||
|
t.printStackTrace(pw);
|
||||||
|
mLogger.error(message + " - " + sw.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Write information to a logfile and logcat */
|
/** Write information to a logfile and logcat */
|
||||||
|
Loading…
Reference in New Issue
Block a user