Add statistics type to system log
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user