mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:同步2.2版本
This commit is contained in:
@@ -116,6 +116,10 @@ public class OperationLogAspect {
|
||||
if (saveOperationLog) {
|
||||
this.operationLogPostProcess(operationLogAnnotation, respData, operationLog, result);
|
||||
}
|
||||
if (elapse > properties.getSlowLogMs()) {
|
||||
log.warn("耗时较长的请求完成警告, url={},elapse={}ms reqData={} respData={}",
|
||||
request.getRequestURI(), elapse, params, respData);
|
||||
}
|
||||
log.info("请求完成, url={},elapse={}ms, respData={}", request.getRequestURI(), elapse, respData);
|
||||
} catch (Exception e) {
|
||||
if (saveOperationLog) {
|
||||
|
||||
@@ -17,4 +17,8 @@ public class OperationLogProperties {
|
||||
* 是否采集操作日志。
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
/**
|
||||
* 接口调用的毫秒数大于该值后,将输出慢日志警告。
|
||||
*/
|
||||
private long slowLogMs = 50000;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,10 @@ public final class SysOperationLogType {
|
||||
* 删除。
|
||||
*/
|
||||
public static final int DELETE = 20;
|
||||
/**
|
||||
* 批量删除。
|
||||
*/
|
||||
public static final int DELETE_BATCH = 21;
|
||||
/**
|
||||
* 新增多对多关联。
|
||||
*/
|
||||
@@ -43,6 +47,10 @@ public final class SysOperationLogType {
|
||||
* 移除多对多关联。
|
||||
*/
|
||||
public static final int DELETE_M2M = 30;
|
||||
/**
|
||||
* 批量移除多对多关联。
|
||||
*/
|
||||
public static final int DELETE_M2M_BATCH = 31;
|
||||
/**
|
||||
* 查询。
|
||||
*/
|
||||
@@ -55,6 +63,10 @@ public final class SysOperationLogType {
|
||||
* 导出。
|
||||
*/
|
||||
public static final int EXPORT = 45;
|
||||
/**
|
||||
* 导入。
|
||||
*/
|
||||
public static final int IMPORT = 46;
|
||||
/**
|
||||
* 上传。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user