Reset trace log on client init
This commit is contained in:
@@ -10,6 +10,7 @@ public final class SignLeakShieldClient implements ClientModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
LOGGER.info("Sign Leak Shield initialized");
|
||||
SignLeakShieldTraceLog.reset();
|
||||
SignLeakShieldTraceLog.info("Sign Leak Shield initialized");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,13 @@ public final class SignLeakShieldTraceLog {
|
||||
private SignLeakShieldTraceLog() {
|
||||
}
|
||||
|
||||
public static synchronized void reset() {
|
||||
try {
|
||||
Files.deleteIfExists(LOG_PATH);
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public static void info(String message) {
|
||||
SignLeakShieldClient.LOGGER.info(message);
|
||||
append(message);
|
||||
|
||||
Reference in New Issue
Block a user