forked from MirrorHub/authlib-injector
Add logging option transform.skipped
This commit is contained in:
parent
8c615b618b
commit
29003c73cb
3 changed files with 3 additions and 1 deletions
|
@ -36,6 +36,7 @@ gradle
|
|||
调试信息类型有:
|
||||
* `launch` 有关 authlib-injector 加载的
|
||||
* `transform` 有关字节码修改的
|
||||
* `transform.skipped` 分析了却未执行字节码修改的类(用于性能分析)
|
||||
* `config` 有关配置获取的
|
||||
* `httpd` 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue