mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
配置文件读取失败,不允许启动
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"os"
|
||||
"sync/atomic"
|
||||
|
||||
"sync"
|
||||
@@ -260,8 +261,8 @@ func (slf *BaseModule) RunModule(module IModule) {
|
||||
err := module.OnInit()
|
||||
if err != nil {
|
||||
GetLogger().Printf(LEVER_ERROR, "Start module %T id is %d is fail,reason:%v...", module, module.GetModuleId(), err)
|
||||
os.Exit(-1)
|
||||
} else {
|
||||
|
||||
GetLogger().Printf(LEVER_INFO, "Start module %T ...", module)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user