对日志监听器新增文件名和行数

This commit is contained in:
boyce
2019-03-26 14:39:26 +08:00
parent e0ae07388f
commit b0156ce788
4 changed files with 29 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ func (slf *BaseModule) RunModule(module IModule) {
slf.recoverCount += 1
//重试3次
if slf.recoverCount < 4 {
if slf.recoverCount < 10 {
go slf.RunModule(slf.GetSelf())
} else {
GetLogger().Printf(LEVER_FATAL, "Routine %T.OnRun has exited!", module)
@@ -333,6 +333,7 @@ func (slf *BaseModule) RunModule(module IModule) {
GetLogger().Printf(LEVER_INFO, "OnEndRun module %T...", module)
return
}
}
}