Skip to content

Commit

Permalink
7.5.3
Browse files Browse the repository at this point in the history
- Additional debugging
  • Loading branch information
Osiris-Team committed Dec 22, 2023
1 parent 0b8e8bc commit a372453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.osiris.autoplug.client</groupId>
<artifactId>autoplug-client</artifactId>
<version>7.5.2</version>
<version>7.5.3</version>
<packaging>jar</packaging>

<name>AutoPlug-Client</name>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/osiris/autoplug/client/configs/MyYaml.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ public Yaml addSingletonConfigFileEventListener(Consumer<FileEvent> listener) th
filesAndPEvents.put(path, new PSave());
}

AL.debug(this.getClass(), "Listening for changes for " + path);
super.addFileEventListener(e -> {
String preInfo = "Modified " + this.file.getName() + ": ";
String preInfo = this.file.getName() + " (" + e.getWatchEventKind() + "): ";
AL.debug(this.getClass(), preInfo);
if (e.isDeleteEvent())
AL.info(preInfo + "Deleted. Thus clean config with defaults will be created once ist needed.");
if (e.isModifyEvent()) {
Expand Down

0 comments on commit a372453

Please sign in to comment.