Misc logging tidy

- Removed leftover debug System.out.println in ASM
- Removed unused logger from Share
- Routed ResourceUtil errors into FPLog instead of System.out/System.err
This commit is contained in:
Ven committed 2024-06-15 19:46:56 +01:00
1 parent 722a08d9cb
commit 418a9ccd12
3 files changed
+6 -13

No files matched your search

@@ -35,8 +35,6 @@ import java.io.IOException;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class Share {
public static final Logger LOG = LogManager.getLogger(Tags.MODNAME);
public static final boolean DEV_ENV;
static {
@@ -49,8 +47,4 @@ public final class Share {
}
public static boolean EARLY_INIT_DONE = false;
public static void deprecatedWarning(Throwable stacktrace) {
LOG.warn("DEPRECATED API CALLED!", stacktrace);
}
}
@@ -55,7 +55,6 @@ public class OptiFineTransformerHooksImpl {
}
for (int i = 0; i < transformers.size(); i++) {
val transformer = transformers.get(i);
System.out.println(transformer.getClass().getName());
if (transformer.getClass().getName().equals("optifine.OptiFineClassTransformer")) {
FPLog.LOG.info("Attaching OptiFine ASM transformer hooks");
transformers.set(i, new WrappedOptiFineClassTransformer(transformer));