Report config write exceptions using logger
This commit is contained in:
parent
f26f294895
commit
0ee693cce4
|
@ -80,7 +80,7 @@ public class Config {
|
||||||
try (FileWriter file = new FileWriter("2a03.json")) {
|
try (FileWriter file = new FileWriter("2a03.json")) {
|
||||||
file.write(JSONObject.valueToString(json));
|
file.write(JSONObject.valueToString(json));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Failed to save config file");
|
LOGGER.error("Failed to save config file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user