Skip to content

Commit

Permalink
Use correct defaultValue for stracktrace (go-gitea#17552)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted authored and Stelios Malathouras committed Mar 28, 2022
1 parent 48869b2 commit f1afa7e
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 @@ -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()
}

Expand Down

0 comments on commit f1afa7e

Please sign in to comment.