mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-13 15:14:46 +08:00
对日志监听器新增文件名和行数
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user