|
@@ -4,8 +4,10 @@ import (
|
|
|
"eta/eta_mini_crm/controllers"
|
|
|
_ "eta/eta_mini_crm/routers"
|
|
|
"eta/eta_mini_crm/scheduler"
|
|
|
+ "eta/eta_mini_crm/utils"
|
|
|
"fmt"
|
|
|
"runtime"
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/beego/beego/v2/core/logs"
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
@@ -55,8 +57,7 @@ func Recover(ctx *context.Context, conf *web.Config) {
|
|
|
logs.Critical(fmt.Sprintf("%s:%d", file, line))
|
|
|
stack = stack + fmt.Sprintln(fmt.Sprintf("%s:%d</br>", file, line))
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ utils.ApiLog.Notice(utils.APPNAME + "崩了" + time.Now().Format("2006-01-02 15:04:05") + "<br/>" + stack)
|
|
|
}
|
|
|
return
|
|
|
}
|