配置文件读取失败,不允许启动

This commit is contained in:
boyce
2019-03-20 16:51:09 +08:00
parent 9bf79f7175
commit c04894c404

View File

@@ -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)
}