Add logging option transform.skipped

This commit is contained in:
yushijinhun 2018-09-23 22:52:34 +08:00
parent 8c615b618b
commit 29003c73cb
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4
3 changed files with 3 additions and 1 deletions

View file

@ -36,6 +36,7 @@ gradle
调试信息类型有:
* `launch` 有关 authlib-injector 加载的
* `transform` 有关字节码修改的
* `transform.skipped` 分析了却未执行字节码修改的类(用于性能分析)
* `config` 有关配置获取的
* `httpd` 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端)

View file

@ -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) {

View file

@ -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() {