mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
[ADD] add some debug messages
This commit is contained in:
parent
6d698b4d10
commit
952d278477
@ -333,6 +333,7 @@ func (m *Manager) applyRuleExec(task *model.Task) error {
|
||||
return fmt.Errorf("Can't convert %s to *model.ApplyRuleTaskBody", reflect.TypeOf(task.Body))
|
||||
}
|
||||
logger := event.GetManager().GetLogger(body.EventID)
|
||||
logrus.Debugf("Getting old AppService")
|
||||
oldAppService := m.store.GetAppService(body.ServiceID)
|
||||
if oldAppService == nil || oldAppService.IsClosed() {
|
||||
logger.Info("service is closed,no need handle", controller.GetLastLoggerOption())
|
||||
@ -340,6 +341,7 @@ func (m *Manager) applyRuleExec(task *model.Task) error {
|
||||
return nil
|
||||
}
|
||||
logrus.Debugf("old AppService: %v", oldAppService)
|
||||
logrus.Debugf("Getting old AppService")
|
||||
newAppService, err := conversion.InitAppService(m.dbmanager, body.ServiceID)
|
||||
if err != nil {
|
||||
logrus.Errorf("Application init create failure:%s", err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user