Prevent Console Spam
This commit is contained in:
parent
ff793b5fc3
commit
0778113726
1 changed files with 3 additions and 1 deletions
|
@ -143,6 +143,8 @@ public class JFrameConsole extends JFrame
|
||||||
//trim
|
//trim
|
||||||
int skipped = len - max;
|
int skipped = len - max;
|
||||||
String trimmed = s.substring(0, max);
|
String trimmed = s.substring(0, max);
|
||||||
|
|
||||||
|
if(!trimmed.startsWith("WARNING: Skipping"))
|
||||||
trimmed = ("WARNING: Skipping " + skipped + " chars, allowing " + max + "\n\r")
|
trimmed = ("WARNING: Skipping " + skipped + " chars, allowing " + max + "\n\r")
|
||||||
+ "Full log saved to: " + tempFile.getAbsolutePath() + "\n\r\n\r"
|
+ "Full log saved to: " + tempFile.getAbsolutePath() + "\n\r\n\r"
|
||||||
+ trimmed;
|
+ trimmed;
|
||||||
|
|
Loading…
Reference in a new issue