Skip to content

Commit

Permalink
simplify logging during module initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 1, 2025
1 parent e7dc6a4 commit 627ed67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public static void reloadModules() {
}
} catch (Throwable t) {
if (t.getCause() instanceof NoClassDefFoundError) {
AnarchyExploitFixes.prefixedLogger().info("Dependencies for module class {} missing, not enabling.", moduleClass.getSimpleName());
AnarchyExploitFixes.prefixedLogger().info("Dependencies for module class {} missing, cannot enable.", moduleClass.getSimpleName());
} else {
AnarchyExploitFixes.prefixedLogger().warn("Failed initialising module class '{}'.", moduleClass.getSimpleName(), t);
AnarchyExploitFixes.prefixedLogger().warn("Module class '{}' failed to init. {}.", moduleClass.getSimpleName(), t.getLocalizedMessage());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public static void reloadModules() {
}
} catch (Throwable t) {
if (t.getCause() instanceof NoClassDefFoundError) {
AnarchyExploitFixes.prefixedLogger().info("Dependencies for module class {} missing, not enabling.", moduleClass.getSimpleName());
AnarchyExploitFixes.prefixedLogger().info("Dependencies for module class {} missing, cannot enable.", moduleClass.getSimpleName());
} else {
AnarchyExploitFixes.prefixedLogger().warn("Failed initialising module class '{}'.", moduleClass.getSimpleName(), t);
AnarchyExploitFixes.prefixedLogger().warn("Module class '{}' failed to init. {}.", moduleClass.getSimpleName(), t.getLocalizedMessage());
}
}
}
Expand Down

0 comments on commit 627ed67

Please sign in to comment.