Skip to content

Commit

Permalink
chore: add logs for thread deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 12, 2024
1 parent 31e72e9 commit 61749f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/src/main/java/fi/sundae/bot/tournament/Matchmaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ public void endMatch(MatchRequest matchRequest, JDA jda) {
}
Match match = maybeMatch.get();
ACTIVE_MATCHES.remove(match);
match.getThread().delete().queue();
match
.getThread()
.delete()
.queue(
success ->
LOGGER.info("Successfully deleted thread for game {}", match.getGameTxHash()),
error ->
LOGGER.warn("failed to delete thread for game {}", match.getGameTxHash(), error));

if (matchRequest.getResult() == MatchResult.TIMEOUT) {
LOGGER.info("Match {} is over due to timeout", matchRequest.getGameId());
Expand Down

0 comments on commit 61749f3

Please sign in to comment.