diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-07 19:17:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 19:17:06 +0800 |
commit | 83f83019ef3471b847a300f0821499b3896ec987 (patch) | |
tree | 65f500016eeab7a74ab2265a6e9e5ab37d99749c /services/context | |
parent | 94aad35a120b05897a0b6b97f0d9605a52ea9642 (diff) | |
download | gitea-83f83019ef3471b847a300f0821499b3896ec987.tar.gz gitea-83f83019ef3471b847a300f0821499b3896ec987.zip |
Clean up log messages (#30313)
`log.Xxx("%v")` is not ideal, this PR adds necessary context messages.
Remove some unnecessary logs.
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'services/context')
-rw-r--r-- | services/context/captcha.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/context/captcha.go b/services/context/captcha.go index a1999900c9..fa8d779f56 100644 --- a/services/context/captcha.go +++ b/services/context/captcha.go @@ -79,11 +79,11 @@ func VerifyCaptcha(ctx *Context, tpl base.TplName, form any) { case setting.CfTurnstile: valid, err = turnstile.Verify(ctx, ctx.Req.Form.Get(cfTurnstileResponseField)) default: - ctx.ServerError("Unknown Captcha Type", fmt.Errorf("Unknown Captcha Type: %s", setting.Service.CaptchaType)) + ctx.ServerError("Unknown Captcha Type", fmt.Errorf("unknown Captcha Type: %s", setting.Service.CaptchaType)) return } if err != nil { - log.Debug("%v", err) + log.Debug("Captcha Verify failed: %v", err) } if !valid { |