Fix #3138: HMCL 错误地将 Authlib 日志识别为 ERROR (#3142)

* Close#3138

* 恢复gradle-wrapper.properties

* 恢复gradle-wrapper.properties

* 添加空格

* 修复控制台输出的日志

* Merge if statement

* update

* update

---------

Co-authored-by: CiLuQwQ <a@>
Co-authored-by: burningtnt <pangyl08@163.com>
Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
辞庐 2024-09-02 01:51:53 +08:00 committed by GitHub
parent 6348166dac
commit 6409841cca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -804,7 +804,7 @@ public final class LauncherHelper {
System.out.println(filteredLog);
Log4jLevel level;
if (isErrorStream)
if (isErrorStream && !filteredLog.startsWith("[authlib-injector]"))
level = Log4jLevel.ERROR;
else
level = showLogs ? Optional.ofNullable(Log4jLevel.guessLevel(filteredLog)).orElse(Log4jLevel.INFO) : null;