don't log every channel find
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s

This commit is contained in:
Lee 2024-07-04 03:42:56 +01:00
parent ece36f7f27
commit fa1f18e11b
2 changed files with 6 additions and 2 deletions

@ -25,7 +25,9 @@ public class ChannelUtils {
if (channel == null) {
return getTextChannel(id, retries + 1);
}
log.info("Found text channel \"{}\" after {} retries.", channel.getName(), retries);
if (retries >= 5) {
log.info("Found text channel \"{}\" after {} retries.", channel.getName(), retries);
}
return channel;
}

@ -25,7 +25,9 @@ public class UserUtils {
if (user == null) {
return getUser(id, retries + 1);
}
log.info("Found user \"{}\" after {} retries.", user.getGlobalName(), retries);
if (retries >= 5) {
log.info("Found user \"{}\" after {} retries.", user.getGlobalName(), retries);
}
return user;
}