Skip to content

Commit dee46f7

Browse files
authored
fix: log throwable catched when ticking signs (#1219)
### Motivation We catch all throwables while ticking a sign. If any exception occurs we log a warning but that warning is missing the catched throwable and therefore we don't have any information about the reason for the error. ### Modification Made sure to print the throwable too. ### Result We have information if something goes wrong
1 parent 859a7e7 commit dee46f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/signs/src/main/java/eu/cloudnetservice/modules/signs/platform/PlatformSignManagement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void initialize(@NonNull Map<SignLayoutsHolder, Set<PlatformSign<P, C>>>
252252
try {
253253
this.tick(signsNeedingTicking);
254254
} catch (Throwable throwable) {
255-
LOGGER.severe("Exception ticking signs");
255+
LOGGER.severe("Exception ticking signs", throwable);
256256
}
257257
}, 0, 1000 / this.tps(), TimeUnit.MILLISECONDS);
258258
this.startKnockbackTask();

0 commit comments

Comments
 (0)