From cc56cf0985aa36ebcab98dc44ab63804139f8f39 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 3 Sep 2022 11:36:22 +0300 Subject: [PATCH] Fix Certificate missing message not showing file path --- .../webserver/configuration/WebserverLogMessages.java | 4 ++-- .../plan/delivery/webserver/http/JettyWebserver.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/configuration/WebserverLogMessages.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/configuration/WebserverLogMessages.java index d755e9b43..f4ddec2f6 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/configuration/WebserverLogMessages.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/configuration/WebserverLogMessages.java @@ -95,8 +95,8 @@ public class WebserverLogMessages { logger.warn(locale.getString(PluginLang.WEB_SERVER_FAIL_STORE_LOAD)); } - public void keystoreFileNotFound() { - logger.info(locale.getString(PluginLang.WEB_SERVER_NOTIFY_NO_CERT_FILE)); + public void keystoreFileNotFound(String keyStorePath) { + logger.info(locale.getString(PluginLang.WEB_SERVER_NOTIFY_NO_CERT_FILE, keyStorePath)); } public void certificateExpiryIn(long expires) { diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/http/JettyWebserver.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/http/JettyWebserver.java index 37e0ea669..d1843b6c3 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/http/JettyWebserver.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/http/JettyWebserver.java @@ -191,7 +191,7 @@ public class JettyWebserver implements WebServer { String keyStorePath = webserverConfiguration.getKeyStorePath(); if (!new File(keyStorePath).exists()) { - webserverLogMessages.keystoreFileNotFound(); + webserverLogMessages.keystoreFileNotFound(keyStorePath); return Optional.empty(); }