From ac7c94031a834cd17173443c2884606342adc5d7 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 28 Jun 2024 18:51:58 +0100 Subject: [PATCH] use name instead of ids for some logs --- src/main/java/cc/fascinated/bat/service/GuildService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/service/GuildService.java b/src/main/java/cc/fascinated/bat/service/GuildService.java index e239341..9d34534 100644 --- a/src/main/java/cc/fascinated/bat/service/GuildService.java +++ b/src/main/java/cc/fascinated/bat/service/GuildService.java @@ -50,7 +50,7 @@ public class GuildService extends ListenerAdapter { if (premium.getExpiresAt() != null && premium.getExpiresAt().before(new Date())) { premium.removePremium(); guildRepository.save(guild); - log.info("Removed premium status from guild \"{}\"", guild.getId()); + log.info("Removed premium status from guild \"{}\"", guild.getName()); } } } @@ -77,7 +77,7 @@ public class GuildService extends ListenerAdapter { return guild; } BatGuild guild = guildRepository.save(new BatGuild(id)); - log.info("Created guild \"{}\" in {}ms", id, System.currentTimeMillis() - start); + log.info("Created guild \"{}\" in {}ms", guild.getName(), System.currentTimeMillis() - start); return guild; } @@ -106,7 +106,7 @@ public class GuildService extends ListenerAdapter { @Override public final void onGuildJoin(GuildJoinEvent event) { Guild guild = event.getGuild(); - log.info("Joined guild \"{}\"", guild.getId()); + log.info("Joined guild \"{}\"", guild.getName()); getGuild(guild.getId()); // Ensure the guild is in the database } }