summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/log.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index aafb4b3725..cd2c5cc8c1 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -211,6 +211,8 @@ func newAccessLogService() {
func newRouterLogService() {
Cfg.Section("log").Key("ROUTER").MustString("console")
+ // Allow [log] DISABLE_ROUTER_LOG to override [server] DISABLE_ROUTER_LOG
+ DisableRouterLog = Cfg.Section("log").Key("DISABLE_ROUTER_LOG").MustBool(DisableRouterLog)
if !DisableRouterLog && RedirectMacaronLog {
options := newDefaultLogOptions()