forked from Fascinated/Bat
don't log every channel find
This commit is contained in:
parent
ece36f7f27
commit
fa1f18e11b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user