Show log message after reloads are processed
This commit is contained in:
parent
dbff17a1ff
commit
c8749940f7
|
|
@ -46,7 +46,6 @@ public class NightConfigFixer {
|
||||||
runnablesToRun = new ArrayList<>(configsToReload);
|
runnablesToRun = new ArrayList<>(configsToReload);
|
||||||
configsToReload.clear();
|
configsToReload.clear();
|
||||||
}
|
}
|
||||||
ModernFix.LOGGER.info("Processing {} config reloads", runnablesToRun.size());
|
|
||||||
for(Runnable r : runnablesToRun) {
|
for(Runnable r : runnablesToRun) {
|
||||||
try {
|
try {
|
||||||
r.run();
|
r.run();
|
||||||
|
|
@ -54,6 +53,7 @@ public class NightConfigFixer {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ModernFix.LOGGER.info("Processed {} config reloads", runnablesToRun.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Class<?> WATCHED_FILE = LamdbaExceptionUtils.uncheck(() -> Class.forName("com.electronwill.nightconfig.core.file.FileWatcher$WatchedFile"));
|
private static final Class<?> WATCHED_FILE = LamdbaExceptionUtils.uncheck(() -> Class.forName("com.electronwill.nightconfig.core.file.FileWatcher$WatchedFile"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user