mirror of
https://github.com/yushijinhun/authlib-injector.git
synced 2024-11-15 06:11:09 +01:00
logging: remove control characters to prevent messing up the console
This commit is contained in:
parent
e913d7d4d4
commit
244fe2e969
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ public final class Logging {
|
|||
pw.close();
|
||||
log += sw.toString();
|
||||
}
|
||||
// remove control characters to prevent messing up the console
|
||||
log = log.replaceAll("[\\p{Cc}&&[^\r\n\t]]", "");
|
||||
out.println(log);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue