diff --git a/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java b/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java index 8906920..5b07d4a 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/ClassTransformer.java @@ -52,7 +52,7 @@ public class ClassTransformer implements ClassFileTransformer { ClassReader reader = new ClassReader(classBuffer); reader.accept(optionalVisitor.get(), 0); if (currentModified) { - Logging.TRANSFORM.info("Transformed " + className + " with " + unit); + Logging.TRANSFORM.info("Transformed [" + className + "] with [" + unit + "]"); modified = true; classBuffer = writer.toByteArray(); } @@ -88,11 +88,11 @@ public class ClassTransformer implements ClassFileTransformer { } return classBuffer; } else { - Logging.TRANSFORM.fine("No transformation is applied to " + className); + Logging.TRANSFORM.fine("No transformation is applied to [" + className + "]"); return null; } } catch (Throwable e) { - Logging.TRANSFORM.log(Level.WARNING, "Failed to transform " + internalClassName, e); + Logging.TRANSFORM.log(Level.WARNING, "Failed to transform [" + internalClassName + "]", e); } } return null; @@ -102,7 +102,7 @@ public class ClassTransformer implements ClassFileTransformer { try { Files.write(Paths.get(className + "_dump.class"), classBuffer, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); } catch (IOException e) { - Logging.TRANSFORM.log(Level.WARNING, "Failed to dump class " + className, e); + Logging.TRANSFORM.log(Level.WARNING, "Failed to dump class [" + className + "]", e); } } diff --git a/src/main/java/moe/yushi/authlibinjector/transform/LocalYggdrasilApiTransformUnit.java b/src/main/java/moe/yushi/authlibinjector/transform/LocalYggdrasilApiTransformUnit.java index f9cd8ed..5450a5f 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/LocalYggdrasilApiTransformUnit.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/LocalYggdrasilApiTransformUnit.java @@ -25,6 +25,6 @@ public class LocalYggdrasilApiTransformUnit extends LdcTransformUnit { @Override public String toString() { - return "deprecated-api-transform"; + return "Local Yggdrasil API Transformer"; } } diff --git a/src/main/java/moe/yushi/authlibinjector/transform/SkinWhitelistTransformUnit.java b/src/main/java/moe/yushi/authlibinjector/transform/SkinWhitelistTransformUnit.java index e94ce7c..80822f6 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/SkinWhitelistTransformUnit.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/SkinWhitelistTransformUnit.java @@ -102,6 +102,6 @@ public class SkinWhitelistTransformUnit implements TransformUnit { @Override public String toString() { - return "skin-whitelist-transform"; + return "Texture Whitelist Transformer"; } } diff --git a/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilApiTransformUnit.java b/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilApiTransformUnit.java index 985cb31..82f9763 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilApiTransformUnit.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilApiTransformUnit.java @@ -22,6 +22,6 @@ public class YggdrasilApiTransformUnit extends RegexTransformUnit { @Override public String toString() { - return "yggdrasil-api-transform"; + return "Yggdrasil API Transformer"; } } diff --git a/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilKeyTransformUnit.java b/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilKeyTransformUnit.java index 9bfdc27..e5fbe42 100644 --- a/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilKeyTransformUnit.java +++ b/src/main/java/moe/yushi/authlibinjector/transform/YggdrasilKeyTransformUnit.java @@ -81,7 +81,7 @@ public class YggdrasilKeyTransformUnit implements TransformUnit { @Override public String toString() { - return "yggdrasil-publickey-transform"; + return "Yggdrasil Public Key Transformer"; } }