aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-04-07 19:44:09 +0800
committerGitHub <noreply@github.com>2024-04-07 11:44:09 +0000
commit5a6f7353d35a73da3cf6d10203df66180cb0be53 (patch)
treeb5276681b4b468e03acce433bf643d4863f67ccf /routers/web/user
parenta29e505c15d7f5ee82f5ccdbd052a50d5ae44e77 (diff)
downloadgitea-5a6f7353d35a73da3cf6d10203df66180cb0be53.tar.gz
gitea-5a6f7353d35a73da3cf6d10203df66180cb0be53.zip
Clean up log messages (#30313) (#30318)
Backport #30313 by wxiaoguang `log.Xxx("%v")` is not ideal, this PR adds necessary context messages. Remove some unnecessary logs. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/setting/account.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go
index d69bda6663..d79af6c437 100644
--- a/routers/web/user/setting/account.go
+++ b/routers/web/user/setting/account.go
@@ -74,7 +74,6 @@ func AccountPost(ctx *context.Context) {
case errors.Is(err, password.ErrIsPwned):
ctx.Flash.Error(ctx.Tr("auth.password_pwned"))
case password.IsErrIsPwnedRequest(err):
- log.Error("%s", err.Error())
ctx.Flash.Error(ctx.Tr("auth.password_pwned_err"))
default:
ctx.ServerError("UpdateAuth", err)