调整日志打印参数优先级
This commit is contained in:
@@ -321,8 +321,14 @@ public class LogBus implements BaseParams {
|
||||
logBody.setStackTrace(fmtStackTrace(stackTrace, geWarn ? null : config.getIncludeStackTrace()));
|
||||
|
||||
// 是否打印日志
|
||||
if (geWarn || (Objects.nonNull(print) ? print : config.getPrint().booleanValue())) {
|
||||
printLog(logBody);
|
||||
if (Objects.nonNull(print)) {
|
||||
if (print) {
|
||||
printLog(logBody);
|
||||
}
|
||||
} else {
|
||||
if (geWarn || config.getPrint()) {
|
||||
printLog(logBody);
|
||||
}
|
||||
}
|
||||
// 异常日志不做忽略
|
||||
if (!geWarn) {
|
||||
|
||||
Reference in New Issue
Block a user