diff --git a/code/common/service/src/main/java/nu/marginalia/service/ConfigLoader.java b/code/common/service/src/main/java/nu/marginalia/service/ConfigLoader.java index 5855dc7f..44512264 100644 --- a/code/common/service/src/main/java/nu/marginalia/service/ConfigLoader.java +++ b/code/common/service/src/main/java/nu/marginalia/service/ConfigLoader.java @@ -9,7 +9,6 @@ import java.nio.file.Files; import java.nio.file.Path; public class ConfigLoader { - private static final Logger logger = LoggerFactory.getLogger(ConfigLoader.class); static Path getConfigPath(String configName) { return WmsaHome.getHomePath().resolve("conf/properties/" + configName + ".properties"); @@ -17,14 +16,13 @@ public class ConfigLoader { static void loadConfig(Path configPath) { if (!Files.exists(configPath)) { - logger.info("No config file found at {}", configPath); + System.err.println("No config file found at " + configPath); return; } - logger.info("Loading config from {}", configPath); + System.out.println("Loading config from " + configPath); try (var is = Files.newInputStream(configPath)) { - logger.info("Config:\n{}", Files.readString(configPath)); System.getProperties().load(is); } catch (IOException e) { throw new RuntimeException(e); diff --git a/code/common/service/src/main/java/nu/marginalia/service/MainClass.java b/code/common/service/src/main/java/nu/marginalia/service/MainClass.java index 6daa4f1b..40303e48 100644 --- a/code/common/service/src/main/java/nu/marginalia/service/MainClass.java +++ b/code/common/service/src/main/java/nu/marginalia/service/MainClass.java @@ -15,7 +15,7 @@ import java.net.UnknownHostException; * They must also invoke init() in their main method. */ public abstract class MainClass { - private static final Logger logger = LoggerFactory.getLogger(MainClass.class); + private final Logger logger = LoggerFactory.getLogger(MainClass.class); static { // Load global config ASAP