diff --git a/middleware/sendmail.go b/middleware/sendmail.go index f9e1f2e..ac74b6c 100644 --- a/middleware/sendmail.go +++ b/middleware/sendmail.go @@ -31,9 +31,9 @@ func RecoverAndSendMail(w io.Writer) func(ctx *gin.Context) { } } headersToStr := strings.Join(headers, "
") - content := `
err:
%v

+ content := `
err:
%v

stack:
%v

-
headers:
%s
+
headers:
%s
` content = fmt.Sprintf(content, err,