Skip to content

Commit

Permalink
backport(1.15): Use correct defaultValue for stracktrace
Browse files Browse the repository at this point in the history
- Backporting go-gitea#17552
  • Loading branch information
Gusted committed Nov 5, 2021
1 parent f25f7c5 commit fe293ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/setting/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit fe293ae

Please sign in to comment.