mirror of
https://github.com/go-gitea/gitea
synced 2025-01-12 02:34:28 +00:00
backport(1.15): Use correct defaultValue for stracktrace (#17557)
- Backporting https://github.com/go-gitea/gitea/pull/17552
This commit is contained in:
parent
f25f7c592f
commit
0d0ff5e32a
@ -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 {
|
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()
|
return log.FromString(value).String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user