aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-11-05 12:25:05 +0100
committerGitHub <noreply@github.com>2021-11-05 13:25:05 +0200
commitbc6df18fb35837b510dfa4daeec53fec32a55af7 (patch)
tree204dd01fc52025246b54fdc2af6e6bf43e87cc7b /modules
parenta161c2ca5834e950f35fa7546b027f825d4bb5eb (diff)
downloadgitea-bc6df18fb35837b510dfa4daeec53fec32a55af7.tar.gz
gitea-bc6df18fb35837b510dfa4daeec53fec32a55af7.zip
Use correct defaultValue for stracktrace (#17552)
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/log.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index ecf0711484..4114ea99cb 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -120,7 +120,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()
}