diff --git a/src/main/kotlin/top/fatweb/api/interceptor/SysLogInterceptor.kt b/src/main/kotlin/top/fatweb/api/interceptor/SysLogInterceptor.kt index 1664ae3..911b929 100644 --- a/src/main/kotlin/top/fatweb/api/interceptor/SysLogInterceptor.kt +++ b/src/main/kotlin/top/fatweb/api/interceptor/SysLogInterceptor.kt @@ -64,7 +64,12 @@ class SysLogInterceptor( if (result is ResponseResult<*>) { if (result.success) { sysLog.apply { - logType = "INFO" + logType = requestUri?.let { + when { + it.startsWith("/system/statistics/") -> "STATISTICS" + else -> "INFO" + } + } ?: "INFO" exception = 0 } } else {