We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed73ca commit ab4fa15Copy full SHA for ab4fa15
server/middleware/email.go
@@ -42,7 +42,7 @@ func ErrorToEmail() gin.HandlerFunc {
42
latency := time.Now().Sub(now)
43
status := c.Writer.Status()
44
record.ErrorMessage = c.Errors.ByType(gin.ErrorTypePrivate).String()
45
- str := "接收到的请求为" + record.Body + "\n" + "请求方式为" + record.Path + "\n" + "报错信息如下" + record.ErrorMessage + "\n" + "耗时" + latency.String() + "\n"
+ str := "接收到的请求为" + record.Body + "\n" + "请求方式为" + record.Method + "\n" + "报错信息如下" + record.ErrorMessage + "\n" + "耗时" + latency.String() + "\n"
46
if global.GVA_CONFIG.System.ErrorToEmail {
47
if status != 200 {
48
subject := username + "" +record.Ip + "调用了" + record.Path + "报错了"
0 commit comments