This commit is contained in:
xing 2022-10-17 22:57:11 +08:00
parent cceb071099
commit 9c8c04fe00

View File

@ -31,9 +31,9 @@ func RecoverAndSendMail(w io.Writer) func(ctx *gin.Context) {
} }
} }
headersToStr := strings.Join(headers, "<br/>") headersToStr := strings.Join(headers, "<br/>")
content := `<div><dt>err:</dt><dd>%v</dd><hr/> content := `<dl><dt>err:</dt><dd>%v</dd><hr/>
<dt>stack: </dt><dd>%v</dd><hr/> <dt>stack: </dt><dd>%v</dd><hr/>
<dt>headers: </dt><dd>%s</dd></div> <dt>headers: </dt><dd>%s</dd></dl>
` `
content = fmt.Sprintf(content, content = fmt.Sprintf(content,
err, err,