You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
access.log file appears in the expected location but stays empty. If you tail it you can see that on incoming requests emtpy lines are added.
gitea.log contains error messages:
2020/12/23 14:49:49 ...outers/routes/chi.go:71:1() [E] Could not set up macaron access logger: template: log:1:6: executing "log" at <.Ctx.RemoteAddr>: can't evaluate field Ctx in type routes.routerLoggerOptions
The text was updated successfully, but these errors were encountered:
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.
[x]
):Description
I did activate the access log in the config using
DISABLE_ROUTER_LOG=false
ENABLE_ACCESS_LOG=true
ACCESS=file
access.log file appears in the expected location but stays empty. If you tail it you can see that on incoming requests emtpy lines are added.
gitea.log contains error messages:
2020/12/23 14:49:49 ...outers/routes/chi.go:71:1() [E] Could not set up macaron access logger: template: log:1:6: executing "log" at <.Ctx.RemoteAddr>: can't evaluate field Ctx in type routes.routerLoggerOptions
The text was updated successfully, but these errors were encountered: