Add statistics type to system log

This commit is contained in:
2023-12-09 23:20:38 +08:00
parent 55c64a0de2
commit 6b83d7ef05

View File

@@ -64,7 +64,12 @@ class SysLogInterceptor(
if (result is ResponseResult<*>) { if (result is ResponseResult<*>) {
if (result.success) { if (result.success) {
sysLog.apply { sysLog.apply {
logType = "INFO" logType = requestUri?.let {
when {
it.startsWith("/system/statistics/") -> "STATISTICS"
else -> "INFO"
}
} ?: "INFO"
exception = 0 exception = 0
} }
} else { } else {