From fe293ae4c1aff7baf973ffebe06a9dc696b3a78f Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 5 Nov 2021 13:51:20 +0100 Subject: [PATCH] backport(1.15): Use correct defaultValue for stracktrace - 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 0fb108c93dcf3..b91f43aa73200 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() }