Skip to content

Commit

Permalink
Flush logs on Fabric (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Nov 3, 2024
1 parent 9e4c7c7 commit 0d31387
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.izzel.arclight.i18n.ArclightConfig;
import io.izzel.arclight.i18n.ArclightLocale;
import io.izzel.arclight.mixin.MixinTools;
import org.apache.logging.log4j.LogManager;
import org.slf4j.LoggerFactory;

public class FabricMixinPlugin extends ArclightMixinPlugin implements AbstractBootstrap {
Expand All @@ -24,5 +25,6 @@ public void onLoad(String mixinPackage) {
} catch (Exception e) {
throw new RuntimeException(e);
}
Runtime.getRuntime().addShutdownHook(new Thread(LogManager::shutdown, "log flusher"));
}
}

0 comments on commit 0d31387

Please sign in to comment.