Skip to content

Commit

Permalink
Show log message after reloads are processed
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Aug 3, 2023
1 parent dbff17a commit c874994
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -46,14 +46,14 @@ public static void runReloads() {
runnablesToRun = new ArrayList<>(configsToReload);
configsToReload.clear();
}
ModernFix.LOGGER.info("Processing {} config reloads", runnablesToRun.size());
for(Runnable r : runnablesToRun) {
try {
r.run();
} catch(RuntimeException e) {
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"));
Expand Down

0 comments on commit c874994

Please sign in to comment.