mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-02 11:21:11 +08:00
修改core打印输出信息
This commit is contained in:
@@ -288,11 +288,11 @@ func (slf *BaseModule) RunModule(module IModule) {
|
|||||||
var coreInfo string
|
var coreInfo string
|
||||||
str, ok := r.(string)
|
str, ok := r.(string)
|
||||||
if ok {
|
if ok {
|
||||||
coreInfo += str + "\n" + string(debug.Stack())
|
coreInfo = string(debug.Stack())
|
||||||
} else {
|
} else {
|
||||||
coreInfo = "Panic!"
|
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)
|
GetLogger().Printf(LEVER_FATAL, coreInfo)
|
||||||
slf.recoverCount += 1
|
slf.recoverCount += 1
|
||||||
//重试3次
|
//重试3次
|
||||||
|
|||||||
Reference in New Issue
Block a user