diff options
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index f21244a54a..2e5ae8cd58 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -88,6 +88,11 @@ func newMacaron() *macaron.Macaron { if setting.Protocol == setting.FCGI { m.SetURLPrefix(setting.AppSubURL) } + m.Use(public.Custom( + &public.Options{ + SkipLogging: setting.DisableRouterLog, + }, + )) m.Use(public.Static( &public.Options{ Directory: path.Join(setting.StaticRootPath, "public"), |