操作日志添加执行的模块和方法
This commit is contained in:
+6
@@ -270,6 +270,12 @@ public class AuthFilter extends BaseFilter implements Ordered, BootCommonConstan
|
||||
log.setTitle(tag.toString());
|
||||
}
|
||||
}
|
||||
if (StringUtils.isBlank(log.getMemo())) {
|
||||
Object method = CommonHolder.get(SWAGGER_METHOD);
|
||||
if (Objects.nonNull(method)) {
|
||||
log.setMemo(method.toString());
|
||||
}
|
||||
}
|
||||
log.setGmtCreate(Instant.now());
|
||||
LogBus.init(LogLevel.INFO, LogBusBaseType.OPT_LOG).data(log).save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user