mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Added log levels to the Log, as well a verbose level
This commit is contained in:
@@ -45,6 +45,8 @@ import resources.control.Intent;
|
||||
import resources.control.Manager;
|
||||
import resources.control.ServerStatus;
|
||||
import resources.server_info.Config;
|
||||
import resources.server_info.Log;
|
||||
import resources.server_info.Log.LogLevel;
|
||||
import services.admin.OnlineInterfaceService;
|
||||
import services.galaxy.GalacticManager;
|
||||
import utilities.ThreadUtilities;
|
||||
@@ -63,6 +65,7 @@ public class CoreManager extends Manager {
|
||||
private boolean shutdownRequested;
|
||||
|
||||
public CoreManager() {
|
||||
Log.setLogLevel(LogLevel.valueOf(getConfig(ConfigFile.PRIMARY).getString("LOG-LEVEL", LogLevel.DEBUG.name())));
|
||||
shutdownService = Executors.newSingleThreadScheduledExecutor(ThreadUtilities.newThreadFactory("core-shutdown-service"));
|
||||
shutdownRequested = false;
|
||||
galaxy = getGalaxy();
|
||||
|
||||
Reference in New Issue
Block a user