don't log every channel find
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
This commit is contained in:
parent
ece36f7f27
commit
fa1f18e11b
@ -25,7 +25,9 @@ public class ChannelUtils {
|
|||||||
if (channel == null) {
|
if (channel == null) {
|
||||||
return getTextChannel(id, retries + 1);
|
return getTextChannel(id, retries + 1);
|
||||||
}
|
}
|
||||||
|
if (retries >= 5) {
|
||||||
log.info("Found text channel \"{}\" after {} retries.", channel.getName(), retries);
|
log.info("Found text channel \"{}\" after {} retries.", channel.getName(), retries);
|
||||||
|
}
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,9 @@ public class UserUtils {
|
|||||||
if (user == null) {
|
if (user == null) {
|
||||||
return getUser(id, retries + 1);
|
return getUser(id, retries + 1);
|
||||||
}
|
}
|
||||||
|
if (retries >= 5) {
|
||||||
log.info("Found user \"{}\" after {} retries.", user.getGlobalName(), retries);
|
log.info("Found user \"{}\" after {} retries.", user.getGlobalName(), retries);
|
||||||
|
}
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user