From 0d0ff5e32a0aa519f756aadf75a906a710505ffc Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 5 Nov 2021 15:55:33 +0100 Subject: [PATCH] backport(1.15): Use correct defaultValue for stracktrace (#17557) - Backporting https://github.com/go-gitea/gitea/pull/17552 --- modules/setting/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setting/log.go b/modules/setting/log.go index 0fb108c93d..b91f43aa73 100644 --- a/modules/setting/log.go +++ b/modules/setting/log.go @@ -121,7 +121,7 @@ func getLogLevel(section *ini.Section, key string, defaultValue log.Level) log.L } func getStacktraceLogLevel(section *ini.Section, key string, defaultValue string) string { - value := section.Key(key).MustString("none") + value := section.Key(key).MustString(defaultValue) return log.FromString(value).String() }