From 8368f61c97ced84342768c82ee47e7d4bbca9772 Mon Sep 17 00:00:00 2001 From: wwt Date: Fri, 22 Dec 2023 01:05:58 +0800 Subject: [PATCH] fix: %{user_scope} --- http/request_log.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http/request_log.go b/http/request_log.go index e7b82b2d..bc13e7cb 100644 --- a/http/request_log.go +++ b/http/request_log.go @@ -43,9 +43,12 @@ func (r *RequestLog) user_id() string { func (r *RequestLog) user_scope() string { if r.user != nil { + if r.user.Scope == "" { + return "." + } return r.user.Scope } - return "." + return "-" } func (r *RequestLog) time_string() string {