mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Server: fixed warn message about miss messages file in dev environment
This commit is contained in:
parent
bd2678242d
commit
0bcf0320d0
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ public enum ServerMessagesUtil {
|
|||
InputStream is = null;
|
||||
File file = new File(SERVER_MSG_TXT_FILE);
|
||||
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());
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
is = new FileInputStream(file);
|
||||
|
|
Loading…
Reference in a new issue