aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-07 19:17:06 +0800
committerGitHub <noreply@github.com>2024-04-07 19:17:06 +0800
commit83f83019ef3471b847a300f0821499b3896ec987 (patch)
tree65f500016eeab7a74ab2265a6e9e5ab37d99749c /routers/web/user
parent94aad35a120b05897a0b6b97f0d9605a52ea9642 (diff)
downloadgitea-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 '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 c93b70af76..8ea7548e51 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)