增加服务启动与停止日志

This commit is contained in:
duanhf2012
2020-04-01 17:31:35 +08:00
parent 946408ca12
commit c1d6d44fbb
3 changed files with 16 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ func (slf *Service) Start() {
}
func (slf *Service) Run() {
log.Debug("Start running Service %s.",slf.GetName())
defer slf.wg.Done()
var bStop = false
for{
@@ -130,8 +130,8 @@ func (slf *Service) Release(){
log.Error("core dump info:%+v\n",err)
}
}()
slf.this.OnRelease()
log.Debug("Release Service %s.",slf.GetName())
}
func (slf *Service) OnRelease(){