add creation time for user and guild log

This commit is contained in:
Lee 2024-07-04 06:47:19 +01:00
parent e8fa4c72dd
commit 09d850146a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}