mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 03:44:45 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
-1
@@ -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));
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
package com.falsepattern.lib.util;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import com.falsepattern.lib.internal.FPLog;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import lombok.val;
|
||||
|
||||
@@ -125,15 +126,14 @@ public final class ResourceUtil {
|
||||
URL resource = new URL("jar:" + file.substring(0, id) + "!" + resourcePath);
|
||||
return resource.openStream();
|
||||
} catch (IOException e) {
|
||||
System.err.println("Failed to load resource " + resourcePath + " from jar " + file.substring(0, id));
|
||||
e.printStackTrace();
|
||||
FPLog.LOG.error("Failed to load resource " + resourcePath + " from jar " + file.substring(0, id), e);
|
||||
}
|
||||
}
|
||||
//Fallback logic
|
||||
System.out.println("Using fallback resource loading logic for "
|
||||
+ resourcePath
|
||||
+ " with reference to "
|
||||
+ referenceClass.getName());
|
||||
FPLog.LOG.warn("Using fallback resource loading logic for "
|
||||
+ resourcePath
|
||||
+ " with reference to "
|
||||
+ referenceClass.getName());
|
||||
return referenceClass.getResourceAsStream(resourcePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user