From 0bcf0320d0f434b8c45a98fdccc4525c4653211c Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 17 Mar 2023 23:02:01 +0400 Subject: [PATCH] Server: fixed warn message about miss messages file in dev environment --- .../src/main/java/mage/server/util/ServerMessagesUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mage.Server/src/main/java/mage/server/util/ServerMessagesUtil.java b/Mage.Server/src/main/java/mage/server/util/ServerMessagesUtil.java index 61a59dccf9..36e4a4a1d0 100644 --- a/Mage.Server/src/main/java/mage/server/util/ServerMessagesUtil.java +++ b/Mage.Server/src/main/java/mage/server/util/ServerMessagesUtil.java @@ -79,7 +79,10 @@ public enum ServerMessagesUtil { InputStream is = null; File file = new File(SERVER_MSG_TXT_FILE); if (!file.exists() || !file.canRead()) { - LOGGER.warn("Couldn't find server messages file using path: " + file.getAbsolutePath()); + // warn user about miss messages file, except dev environment + if (!file.getAbsolutePath().contains("Mage.Server")) { + LOGGER.warn("Couldn't find server messages file using path: " + file.getAbsolutePath()); + } } else { try { is = new FileInputStream(file);