BugReporter will print crashed thread ID

This commit is contained in:
Maxmtg
2013-04-04 04:24:17 +00:00
parent 4eb77330ee
commit 609f99a2b6
2 changed files with 4 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ public class Target {
*
* @return the min targets
*/
public final String getMinTargets() {
private final String getMinTargets() {
return this.minTargets;
}

View File

@@ -50,6 +50,7 @@ import net.miginfocom.swing.MigLayout;
import org.apache.commons.lang3.StringUtils;
import forge.FThreads;
import forge.gui.WrapLayout;
import forge.gui.toolbox.FHyperlink;
import forge.gui.toolbox.FLabel;
@@ -76,7 +77,7 @@ public class BugReporter {
return;
}
if (message != null) {
System.err.println(message);
System.err.printf("%s > %s%n", FThreads.debugGetCurrThreadId(), message);
}
ex.printStackTrace();
@@ -85,8 +86,7 @@ public class BugReporter {
_buildSpoilerHeader(sb, ex.getClass().getSimpleName());
sb.append("\n\n");
if (null != message && !message.isEmpty()) {
sb.append(message);
sb.append("\n");
sb.append(FThreads.debugGetCurrThreadId()).append(" > ").append(message).append("\n");
}
StringWriter sw = new StringWriter();