style: fix formatting in error message and log string (#421)
This commit is contained in:
parent
0f0d27890e
commit
595fb4012f
|
|
@ -50,7 +50,7 @@ func AccessLogMW() app.HandlerFunc {
|
|||
}
|
||||
|
||||
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,
|
||||
latency, clientIP, method, path, handleName, requestType, i18n.GetLocale(c))
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ func init() {
|
|||
|
||||
code.Register(
|
||||
ErrPluginRecordNotFound,
|
||||
fmt.Sprintf("record not found"),
|
||||
"record not found",
|
||||
code.WithAffectStability(false),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue