@@ -54,11 +54,11 @@ public void onEnable() {
5454 foliaLib = new FoliaLib (this );
5555 boolean isFolia = foliaLib .isFolia ();
5656 String platform = isFolia ? "Folia" : "Paper/Spigot/Bukkit" ;
57- getLogger (). info ("Starting WeGuardian on " + platform + " platform" );
57+ debug ("Starting WeGuardian on " + platform + " platform" );
5858 int threadPoolSize = isFolia ? 4 : 2 ;
5959 executorService = Executors .newScheduledThreadPool (threadPoolSize );
6060 if (isFolia ) {
61- getLogger (). info ("Folia detected - Using region-based scheduling optimizations" );
61+ debug ("Folia detected - Using region-based scheduling optimizations" );
6262 }
6363 loadConfigurations ();
6464 saveDefaultConfig ();
@@ -112,16 +112,16 @@ private void initializeDatabase() {
112112 boolean useMySQL = getConfig ().getBoolean ("database.mysql.enabled" , false );
113113
114114 if (useMySQL && "mysql" .equals (databaseType )) {
115- getLogger (). info ("Initializing MySQL database connection..." );
115+ debug ("Initializing MySQL database connection..." );
116116 this .databaseManager = new HikariDatabaseManager (this );
117117 } else {
118- getLogger (). info ("Initializing YAML file storage..." );
118+ debug ("Initializing YAML file storage..." );
119119 this .databaseManager = new YamlDatabaseManager (this );
120120 }
121121
122122 try {
123123 this .databaseManager .initialize ().get ();
124- getLogger (). info ("Database initialized successfully! Type: " + (useMySQL ? "MySQL" : "YAML" ));
124+ debug ("Database initialized successfully! Type: " + (useMySQL ? "MySQL" : "YAML" ));
125125 } catch (Exception e ) {
126126 getLogger ().severe ("Failed to initialize database: " + e .getMessage ());
127127 e .printStackTrace ();
@@ -290,7 +290,7 @@ private void loadMessagesConfig() {
290290 saveResource ("messages.yml" , false );
291291 }
292292 messagesConfig = YamlConfiguration .loadConfiguration (messagesFile );
293- getLogger (). info ("Loaded messages configuration with " + messagesConfig .getKeys (true ).size () + " message keys" );
293+ debug ("Loaded messages configuration with " + messagesConfig .getKeys (true ).size () + " message keys" );
294294 }
295295
296296 private void loadGuiConfigs () {
@@ -320,15 +320,15 @@ private void loadGuiConfigs() {
320320 }
321321 }
322322 reasonsConfig = YamlConfiguration .loadConfiguration (reasonsFile );
323- getLogger (). info ("Loaded GUI configurations - Menu: " + guiConfig .getKeys (false ).size () +
323+ debug ("Loaded GUI configurations - Menu: " + guiConfig .getKeys (false ).size () +
324324 " sections, Reasons loaded with " + reasonsConfig .getKeys (false ).size () + " categories" );
325325 }
326326
327327 public void reloadConfigurations () {
328328 reloadConfig ();
329329 loadConfigurations ();
330330 clearMessageCache ();
331- getLogger (). info ("§aConfigurations reloaded successfully!" );
331+ debug ("§aConfigurations reloaded successfully!" );
332332 }
333333
334334 public String getMessage (String path ) {
0 commit comments