Merge pull request #1055 from LamGC/change-exception-log-format

This commit is contained in:
Ruben Bermudez 2022-06-15 02:26:53 +02:00 committed by GitHub
commit 69e4a6a149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -697,8 +697,13 @@ public abstract class BaseAbilityBot extends DefaultAbsSender implements Ability
try {
return callable.call();
} catch(Exception ex) {
log.error(format("Reply [%s] failed to check for conditions. " +
"Make sure you're safeguarding against all possible updates.", name));
String msg = format("Reply [%s] failed to check for conditions. " +
"Make sure you're safeguarding against all possible updates.", name);
if (log.isDebugEnabled()) {
log.error(msg, ex);
} else {
log.error(msg);
}
}
return false;
}