Skip to content

Commit

Permalink
loader: init logger after jansi
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed May 22, 2022
1 parent 71ec418 commit c86d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/itxtech/mcl/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public Loader() {
public static void main(String[] args) {
var loader = new Loader();
try {
loader.loadConfig();
if (!Boolean.getBoolean("mcl.disable-ansi")) {
if (!Boolean.getBoolean("mcl.no-ansi-console-init")) {
AnsiConsole.systemInstall();
Expand All @@ -76,6 +75,7 @@ public static void main(String[] args) {
} else {
Ansi.setEnabled(false);
}
loader.loadConfig();
loader.start(args);
} catch (Exception e) {
loader.logger.logException(e);
Expand Down

0 comments on commit c86d10b

Please sign in to comment.