forked from Fascinated/Bat
add creation time for user and guild log
This commit is contained in:
parent
e8fa4c72dd
commit
09d850146a
@ -95,7 +95,7 @@ public class GuildService extends ListenerAdapter implements EventListener {
|
|||||||
// New guild
|
// New guild
|
||||||
BatGuild guild = new BatGuild(id, new Document());
|
BatGuild guild = new BatGuild(id, new Document());
|
||||||
guilds.put(id, guild);
|
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;
|
return guild;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ public class UserService implements EventListener {
|
|||||||
// New user
|
// New user
|
||||||
BatUser batUser = new BatUser(id, user, new Document());
|
BatUser batUser = new BatUser(id, user, new Document());
|
||||||
users.put(id, batUser);
|
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;
|
return batUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user