webstack-go
webstack-go copied to clipboard
预警邮件设置问题
我是打包好,放到服务器上的。但是在运行过程中报错:
{"code":10101,"message":"内部服务器错误"}
查看日志 看到:
{"level":"error","time":"2023-07-04 22:17:49","caller":"core/core.go:377","msg":"got panic","domain":"go-gin-api[fat]","panic":"runtime error: invalid memory address or nil pointer dereference", ....
{"level":"error","time":"2023-07-04 22:17:49","caller":"alert/alert.go:21","msg":"Mail config error","domain":"go-gin-api[fat]"}
但是,我的邮件设置是默认的,我在本地跑起来没问题,
默认支持的是 邮件告警,使用前需要 配置发送人信息。 可以参考文档 15.当发生 Panic 错误时,支持告警吗?
你好,这个panic问题解决了没