diff --git a/README.md b/README.md index 3964559..fe42c08 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ gradle 调试信息类型有: * `launch` 有关 authlib-injector 加载的 * `transform` 有关字节码修改的 + * `transform.skipped` 分析了却未执行字节码修改的类(用于性能分析) * `config` 有关配置获取的 * `httpd` 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端) diff --git a/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java b/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java index b45e757..4572fce 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java @@ -89,7 +89,7 @@ public class ClassTransformer implements ClassFileTransformer { } return classBuffer; } else { - Logging.TRANSFORM.fine("No transformation is applied to [" + className + "]"); + Logging.TRANSFORM_SKIPPED.fine("No transformation is applied to [" + className + "]"); return null; } } catch (Throwable e) { diff --git a/src/main/java/moe/yushi/authlibinjector/util/Logging.java b/src/main/java/moe/yushi/authlibinjector/util/Logging.java index bda3677..67b32e2 100644 --- a/src/main/java/moe/yushi/authlibinjector/util/Logging.java +++ b/src/main/java/moe/yushi/authlibinjector/util/Logging.java @@ -23,6 +23,7 @@ public final class Logging { public static final Logger LAUNCH = Logger.getLogger(PREFIX + ".launch"); public static final Logger CONFIG = Logger.getLogger(PREFIX + ".config"); public static final Logger TRANSFORM = Logger.getLogger(PREFIX + ".transform"); + public static final Logger TRANSFORM_SKIPPED = Logger.getLogger(PREFIX + ".transform.skipped"); public static final Logger HTTPD = Logger.getLogger(PREFIX + ".httpd"); public static void init() {