feat: 添加更多debug日志

This commit is contained in:
Mmx233
2022-03-02 22:49:24 +08:00
parent f778319a00
commit bef90ef4d7
3 changed files with 7 additions and 5 deletions

View File

@@ -82,6 +82,7 @@ func (c *loG) Fatal(a ...interface{}) {
func (c *loG) CatchRecover() {
if e := recover(); e != nil {
c.Debug("发生恐慌")
var buf [4096]byte
c.Fatal(e, "\n", string(buf[:runtime.Stack(buf[:], false)]))
}