fix: 去除无效代码
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"github.com/Mmx233/tool"
|
||||
"log"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -82,11 +81,3 @@ func (c *loG) Warn(a ...interface{}) {
|
||||
func (c *loG) Fatal(a ...interface{}) {
|
||||
c.print(true, append([]interface{}{"[FATAL] "}, a...)...)
|
||||
}
|
||||
|
||||
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)]))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user