Prevent Console Spam

This commit is contained in:
Konloch 2021-07-23 20:30:02 -07:00
parent ff793b5fc3
commit 0778113726

View file

@ -143,7 +143,9 @@ public class JFrameConsole extends JFrame
//trim
int skipped = len - max;
String trimmed = s.substring(0, max);
trimmed = ("WARNING: Skipping " + skipped + " chars, allowing " + max + "\n\r")
if(!trimmed.startsWith("WARNING: Skipping"))
trimmed = ("WARNING: Skipping " + skipped + " chars, allowing " + max + "\n\r")
+ "Full log saved to: " + tempFile.getAbsolutePath() + "\n\r\n\r"
+ trimmed;