Merge pull request #1055 from LamGC/change-exception-log-format
This commit is contained in:
commit
69e4a6a149
@ -697,8 +697,13 @@ public abstract class BaseAbilityBot extends DefaultAbsSender implements Ability
|
|||||||
try {
|
try {
|
||||||
return callable.call();
|
return callable.call();
|
||||||
} catch(Exception ex) {
|
} catch(Exception ex) {
|
||||||
log.error(format("Reply [%s] failed to check for conditions. " +
|
String msg = format("Reply [%s] failed to check for conditions. " +
|
||||||
"Make sure you're safeguarding against all possible updates.", name));
|
"Make sure you're safeguarding against all possible updates.", name);
|
||||||
|
if (log.isDebugEnabled()) {
|
||||||
|
log.error(msg, ex);
|
||||||
|
} else {
|
||||||
|
log.error(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user