Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Supplier;

/**
Expand Down Expand Up @@ -51,7 +52,7 @@ public static void init() {
l.isTRACE = false;
l.isDEBUG = false;
l.isINFO = true;
l.logHooks = new ArrayList<>();
l.logHooks = new CopyOnWriteArrayList<>();
l.logHooks.add(new RichConsoleLogHook());
l.errorHook = getDefaultErrorHook();
Log.setLog(l);
Expand Down Expand Up @@ -111,7 +112,7 @@ public static void initInteractive() {
l.isDEBUG = false;
l.isINFO = true;
l.isInteractive = true;
l.logHooks = new ArrayList<>();
l.logHooks = new CopyOnWriteArrayList<>();
l.logHooks.add(new RichConsoleLogHook());
Log.setLog(l);
}
Expand Down Expand Up @@ -160,7 +161,7 @@ public static void internalRemove() {
/* Utility class. */
protected Log() {
// TODO: Workaround by ALU to fix the NPE
this.logHooks = new ArrayList<>();
this.logHooks = new CopyOnWriteArrayList<>();
this.logHooks.add(new RichConsoleLogHook());
this.errorHook = getDefaultErrorHook();
// TODO: END Workaround by ALU to fix the NPE
Expand Down
Loading