修复数据库波动导致后台掉线

This commit is contained in:
yml2213
2026-07-14 16:33:42 +08:00
parent 3a555c27b2
commit 42475e687a
5 changed files with 78 additions and 6 deletions
@@ -54,6 +54,9 @@ func RequestLogger(logger *zap.Logger) gin.HandlerFunc {
if source, ok := c.Get(ContextAuthTokenSource); ok {
fields = append(fields, zap.Any("auth_token_source", source))
}
if detail, ok := c.Get(ContextAuthFailureDetail); ok {
fields = append(fields, zap.Any("auth_failure_detail", detail))
}
if tokenVersion, ok := c.Get(ContextAuthTokenVersion); ok {
fields = append(fields, zap.Any("auth_token_version", tokenVersion))
}