mirror of
https://github.com/unmojang/authlib-injector.git
synced 2025-09-30 23:01:29 -04:00
Add logging option transform.skipped
This commit is contained in:
parent
8c615b618b
commit
29003c73cb
@ -36,6 +36,7 @@ gradle
|
|||||||
调试信息类型有:
|
调试信息类型有:
|
||||||
* `launch` 有关 authlib-injector 加载的
|
* `launch` 有关 authlib-injector 加载的
|
||||||
* `transform` 有关字节码修改的
|
* `transform` 有关字节码修改的
|
||||||
|
* `transform.skipped` 分析了却未执行字节码修改的类(用于性能分析)
|
||||||
* `config` 有关配置获取的
|
* `config` 有关配置获取的
|
||||||
* `httpd` 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端)
|
* `httpd` 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端)
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public class ClassTransformer implements ClassFileTransformer {
|
|||||||
}
|
}
|
||||||
return classBuffer;
|
return classBuffer;
|
||||||
} else {
|
} else {
|
||||||
Logging.TRANSFORM.fine("No transformation is applied to [" + className + "]");
|
Logging.TRANSFORM_SKIPPED.fine("No transformation is applied to [" + className + "]");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
@ -23,6 +23,7 @@ public final class Logging {
|
|||||||
public static final Logger LAUNCH = Logger.getLogger(PREFIX + ".launch");
|
public static final Logger LAUNCH = Logger.getLogger(PREFIX + ".launch");
|
||||||
public static final Logger CONFIG = Logger.getLogger(PREFIX + ".config");
|
public static final Logger CONFIG = Logger.getLogger(PREFIX + ".config");
|
||||||
public static final Logger TRANSFORM = Logger.getLogger(PREFIX + ".transform");
|
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 final Logger HTTPD = Logger.getLogger(PREFIX + ".httpd");
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user