From a2c78ad9a058166a932452ff4844ff949b0911c0 Mon Sep 17 00:00:00 2001 From: boyce Date: Sat, 23 Mar 2019 15:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9core=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/Module.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/Module.go b/service/Module.go index efbac42..5a06559 100644 --- a/service/Module.go +++ b/service/Module.go @@ -288,11 +288,11 @@ func (slf *BaseModule) RunModule(module IModule) { var coreInfo string str, ok := r.(string) if ok { - coreInfo += str + "\n" + string(debug.Stack()) + coreInfo = string(debug.Stack()) } else { coreInfo = "Panic!" } - coreInfo += "\n" + fmt.Sprintf("Core module is %T, try count %d.\n", module, slf.recoverCount) + coreInfo += "\n" + fmt.Sprintf("Core module is %T, try count %d. core information is %s\n", module, slf.recoverCount, str) GetLogger().Printf(LEVER_FATAL, coreInfo) slf.recoverCount += 1 //重试3次