]> source.dussan.org Git - gitea.git/commit
Fix access log (#14475)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 27 Jan 2021 17:46:35 +0000 (01:46 +0800)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 17:46:35 +0000 (18:46 +0100)
commita51cc6dea41b154b946e982fde6cc1a600210a71
tree07e9f38a2f3572bb8ed9a666d33dd30e976bd5e6
parent4c6e0295069a3c2f0df3d9f30560906bc2aa73a8
Fix access log (#14475)

Fix #14121, #14478.

The `AccessLog` middleware has to be after `Contexter` or `APIContexter` so that we can get `LoginUserName` if possible.
And also there is a **BREAK** change that it removed internal API access log.
modules/auth/sso/oauth2.go
modules/auth/sso/sso.go
modules/auth/sso/sspi_windows.go
modules/context/access_log.go [new file with mode: 0644]
modules/context/context.go
modules/context/response.go
modules/middlewares/request.go [new file with mode: 0644]
routers/api/v1/api.go
routers/routes/base.go
routers/routes/web.go