Skip to content

Commit 4d83fb9

Browse files
committed
Fix go-gitea#9151 - sendTos should be an array
1 parent 62bcb2b commit 4d83fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func generateLogConfig(sec *ini.Section, name string, defaults defaultLogOptions
131131
logConfig["username"] = sec.Key("USER").MustString("[email protected]")
132132
logConfig["password"] = sec.Key("PASSWD").MustString("******")
133133
logConfig["host"] = sec.Key("HOST").MustString("127.0.0.1:25")
134-
logConfig["sendTos"] = sec.Key("RECEIVERS").MustString("[]")
134+
logConfig["sendTos"] = strings.Split(sec.Key("RECEIVERS").MustString(""), ",")
135135
logConfig["subject"] = sec.Key("SUBJECT").MustString("Diagnostic message from Gitea")
136136
}
137137

0 commit comments

Comments
 (0)