From ddadd20633d46e4a9683cd0cc9c746ee90ff1dc0 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 12 Mar 2022 22:14:10 +0800 Subject: Improve log messages. --- src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java b/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java index a556f92..bdaf31d 100644 --- a/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java +++ b/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java @@ -71,7 +71,7 @@ public final class PluginMain { logger.debug("Loading rule chain."); var rc = new RouterConfigurer(routing); rc.configure(messageRouter); // update routing table, clear endpoints - logger.debug("Message router is configured successfully."); + logger.debug("Finish configuring message router."); } catch (JsonProcessingException | ConfigSyntaxError ex) { logger.error("Failed to load routing config.", ex); throw new RuntimeException(ex); @@ -126,13 +126,11 @@ public final class PluginMain { logger.error("Failed to start API server", ex); throw new RuntimeException(ex); } - - logger.info("Finish initializing."); } public void enable() { // TODO refactor setup and teardown routine, split into hooks - logger.info("Loading config from disk..."); + logger.info("Loading config from disk."); try { GlobalConfigManager.initializeGlobalManager(environment.pluginDataPath().toFile()); } catch (ConfigLoadException | IOException ex) { -- cgit v1.2.3