1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Use correct defaultValue for stracktrace (#17552)

This commit is contained in:
Gusted 2021-11-05 12:25:05 +01:00 committed by GitHub
parent a161c2ca58
commit bc6df18fb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}