aboutsummaryrefslogtreecommitdiffstats
path: root/routers/common/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/common/middleware.go')
-rw-r--r--routers/common/middleware.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/common/middleware.go b/routers/common/middleware.go
index d664bfccfa..4f9d43c362 100644
--- a/routers/common/middleware.go
+++ b/routers/common/middleware.go
@@ -50,11 +50,11 @@ func Middlewares() []func(http.Handler) http.Handler {
handlers = append(handlers, middleware.StripSlashes)
- if !setting.DisableRouterLog {
+ if !setting.Log.DisableRouterLog {
handlers = append(handlers, routing.NewLoggerHandler())
}
- if setting.EnableAccessLog {
+ if setting.Log.EnableAccessLog {
handlers = append(handlers, context.AccessLogger())
}