added debug output

This commit is contained in:
2022-04-21 22:15:11 +02:00
parent 483bd48d2d
commit 3e5a739052
2 changed files with 2 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>Widerhall</artifactId> <artifactId>Widerhall</artifactId>
<version>0.2.5</version> <version>0.2.6</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

View File

@@ -33,6 +33,7 @@ public class Configuration {
public Configuration load(File file) { public Configuration load(File file) {
this.file = file; this.file = file;
if (file.exists()) try { if (file.exists()) try {
LOG.info("Loading configuration from {}",file);
var newVals = (JSONObject) new JSONParser().parse(Files.readString(file.toPath())); var newVals = (JSONObject) new JSONParser().parse(Files.readString(file.toPath()));
data.putAll(newVals); data.putAll(newVals);
} catch (ParseException | IOException e){ } catch (ParseException | IOException e){