mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-15 05:07:29 +08:00
Merge branch 'master' of https://github.com/duanhf2012/origin
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"sync"
|
"sync"
|
||||||
@@ -260,8 +261,8 @@ func (slf *BaseModule) RunModule(module IModule) {
|
|||||||
err := module.OnInit()
|
err := module.OnInit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
GetLogger().Printf(LEVER_ERROR, "Start module %T id is %d is fail,reason:%v...", module, module.GetModuleId(), err)
|
GetLogger().Printf(LEVER_ERROR, "Start module %T id is %d is fail,reason:%v...", module, module.GetModuleId(), err)
|
||||||
|
os.Exit(-1)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
GetLogger().Printf(LEVER_INFO, "Start module %T ...", module)
|
GetLogger().Printf(LEVER_INFO, "Start module %T ...", module)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user