style: fix formatting in error message and log string (#421)

This commit is contained in:
zandwang 2025-08-01 06:44:17 +08:00 committed by GitHub
parent 0f0d27890e
commit 595fb4012f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func AccessLogMW() app.HandlerFunc {
} }
requestType := ctx.GetInt32(RequestAuthTypeStr) requestType := ctx.GetInt32(RequestAuthTypeStr)
baseLog := fmt.Sprintf("| %s | %s | %d | %v | %s | %s | %v | %s | %d %s", baseLog := fmt.Sprintf("| %s | %s | %d | %v | %s | %s | %v | %s | %d | %s",
string(ctx.GetRequest().Scheme()), ctx.Host(), status, string(ctx.GetRequest().Scheme()), ctx.Host(), status,
latency, clientIP, method, path, handleName, requestType, i18n.GetLocale(c)) latency, clientIP, method, path, handleName, requestType, i18n.GetLocale(c))

View File

@ -90,7 +90,7 @@ func init() {
code.Register( code.Register(
ErrPluginRecordNotFound, ErrPluginRecordNotFound,
fmt.Sprintf("record not found"), "record not found",
code.WithAffectStability(false), code.WithAffectStability(false),
) )