From 09d850146af2e74cd63e507895021a018fc15df4 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 06:47:19 +0100 Subject: [PATCH] add creation time for user and guild log --- src/main/java/cc/fascinated/bat/service/GuildService.java | 2 +- src/main/java/cc/fascinated/bat/service/UserService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/service/GuildService.java b/src/main/java/cc/fascinated/bat/service/GuildService.java index 56b2afe..ecacbe6 100644 --- a/src/main/java/cc/fascinated/bat/service/GuildService.java +++ b/src/main/java/cc/fascinated/bat/service/GuildService.java @@ -95,7 +95,7 @@ public class GuildService extends ListenerAdapter implements EventListener { // New guild BatGuild guild = new BatGuild(id, new Document()); guilds.put(id, guild); - log.info("Created guild \"{}\" - \"{}\"", guild.getName(), guild.getId()); + log.info("Created guild \"{}\" - \"{}\" in {}ms", guild.getName(), guild.getId(), System.currentTimeMillis() - before); return guild; } diff --git a/src/main/java/cc/fascinated/bat/service/UserService.java b/src/main/java/cc/fascinated/bat/service/UserService.java index 57a82fe..cde7cb0 100644 --- a/src/main/java/cc/fascinated/bat/service/UserService.java +++ b/src/main/java/cc/fascinated/bat/service/UserService.java @@ -69,7 +69,7 @@ public class UserService implements EventListener { // New user BatUser batUser = new BatUser(id, user, new Document()); users.put(id, batUser); - log.info("Created user \"{}\" - \"{}\"", batUser.getName(), batUser.getId()); + log.info("Created user \"{}\" - \"{}\" in {}ms", batUser.getName(), batUser.getId(), System.currentTimeMillis() - before); return batUser; }