Skip to content

Commit

Permalink
fix: fix the updater debug field
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Nov 26, 2023
1 parent dc2fce2 commit 98aa086
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ private void setupUpdater() {
// enable debug messages in UpdaterTask
try {
Class<?> clazz = Class.forName("net.guizhanss.guizhanlib.updater.UpdaterTask");
Field field = clazz.getDeclaredField("DEBUG");
Field field = clazz.getDeclaredField("debug");
field.setAccessible(true);
field.set(null, true);
} catch (ClassNotFoundException | NoSuchFieldException | IllegalAccessException ex) {
getLogger().log(Level.SEVERE, ex, ex::getMessage);
getLogger().log(Level.SEVERE, ex, () -> "An error occurred while enabling debug messages in auto " +
"updater");
}
}
}
Expand Down

0 comments on commit 98aa086

Please sign in to comment.