mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +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;
|
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()) {
|
||||||
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 {
|
} else {
|
||||||
try {
|
try {
|
||||||
is = new FileInputStream(file);
|
is = new FileInputStream(file);
|
||||||
|
|
Loading…
Reference in a new issue