mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
BugReporter will print crashed thread ID
This commit is contained in:
@@ -272,7 +272,7 @@ public class Target {
|
|||||||
*
|
*
|
||||||
* @return the min targets
|
* @return the min targets
|
||||||
*/
|
*/
|
||||||
public final String getMinTargets() {
|
private final String getMinTargets() {
|
||||||
return this.minTargets;
|
return this.minTargets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ import net.miginfocom.swing.MigLayout;
|
|||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
import forge.FThreads;
|
||||||
import forge.gui.WrapLayout;
|
import forge.gui.WrapLayout;
|
||||||
import forge.gui.toolbox.FHyperlink;
|
import forge.gui.toolbox.FHyperlink;
|
||||||
import forge.gui.toolbox.FLabel;
|
import forge.gui.toolbox.FLabel;
|
||||||
@@ -76,7 +77,7 @@ public class BugReporter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
System.err.println(message);
|
System.err.printf("%s > %s%n", FThreads.debugGetCurrThreadId(), message);
|
||||||
}
|
}
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
|
|
||||||
@@ -85,8 +86,7 @@ public class BugReporter {
|
|||||||
_buildSpoilerHeader(sb, ex.getClass().getSimpleName());
|
_buildSpoilerHeader(sb, ex.getClass().getSimpleName());
|
||||||
sb.append("\n\n");
|
sb.append("\n\n");
|
||||||
if (null != message && !message.isEmpty()) {
|
if (null != message && !message.isEmpty()) {
|
||||||
sb.append(message);
|
sb.append(FThreads.debugGetCurrThreadId()).append(" > ").append(message).append("\n");
|
||||||
sb.append("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
|
|||||||
Reference in New Issue
Block a user