Server: fixed warn message about miss messages file in dev environment

This commit is contained in:
Oleg Agafonov 2023-03-17 23:02:01 +04:00
parent bd2678242d
commit 0bcf0320d0

View file

@ -79,7 +79,10 @@ public enum ServerMessagesUtil {
InputStream is = null; InputStream is = null;
File file = new File(SERVER_MSG_TXT_FILE); File file = new File(SERVER_MSG_TXT_FILE);
if (!file.exists() || !file.canRead()) { if (!file.exists() || !file.canRead()) {
// 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()); LOGGER.warn("Couldn't find server messages file using path: " + file.getAbsolutePath());
}
} else { } else {
try { try {
is = new FileInputStream(file); is = new FileInputStream(file);