From 478dbc3f3c7548b5c9950ff5ff7ab881286fa1a2 Mon Sep 17 00:00:00 2001 From: extio-de Date: Thu, 25 Dec 2025 12:04:17 +0100 Subject: [PATCH] refactor(module): Change logging level from info to debug for module load/unload and activation events --- .../extio/game_engine/module/ModuleServiceImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/extio/game_engine/module/ModuleServiceImpl.java b/src/main/java/de/extio/game_engine/module/ModuleServiceImpl.java index ea7c6df..e004b00 100644 --- a/src/main/java/de/extio/game_engine/module/ModuleServiceImpl.java +++ b/src/main/java/de/extio/game_engine/module/ModuleServiceImpl.java @@ -97,7 +97,7 @@ public class ModuleServiceImpl implements InitializingBean, ModuleService { synchronized (this.modulesAll) { this.modulesAllView = List.copyOf(this.modulesAll); } - LOGGER.info("Loaded module " + module.getClass().getName()); + LOGGER.debug("Loaded module " + module.getClass().getName()); this.invokeSafe(module, m -> m.onLoad()); } @@ -124,7 +124,7 @@ public class ModuleServiceImpl implements InitializingBean, ModuleService { this.rendererWorkingSet.clear(clientModule.getId()); } - LOGGER.info("Unloaded module " + id); + LOGGER.debug("Unloaded module " + id); } catch (final Exception e) { LOGGER.error("Error unloading module " + id, e); @@ -163,7 +163,7 @@ public class ModuleServiceImpl implements InitializingBean, ModuleService { } this.invokeSafe(module, AbstractModule::onDeactivate); - LOGGER.info("Deactivated " + id); + LOGGER.debug("Deactivated " + id); } }, () -> { if (active) { @@ -191,7 +191,7 @@ public class ModuleServiceImpl implements InitializingBean, ModuleService { } this.invokeSafe(module, AbstractModule::onActivate); - LOGGER.info("Activated " + id); + LOGGER.debug("Activated " + id); } } }); @@ -216,13 +216,13 @@ public class ModuleServiceImpl implements InitializingBean, ModuleService { if (doDisplay && !curDisplayed) { this.modulesDisplayed.add(clientModule); clientModule.setDisplayed(true); - LOGGER.info("Displayed {}", id); + LOGGER.debug("Displayed {}", id); this.invokeSafe(clientModule, m -> ((AbstractClientModule) m).onShow()); } else if (!doDisplay && curDisplayed) { clientModule.setDisplayed(false); this.modulesDisplayed.removeIf(mod -> mod.getId().equals(id)); - LOGGER.info("Hidden {}", id); + LOGGER.debug("Hidden {}", id); this.invokeSafe(clientModule, m -> ((AbstractClientModule) m).onHide()); } this.modulesDisplayedClientModulesView = List.copyOf(this.modulesDisplayed);