|
@@ -46,7 +46,7 @@ func EventSingle(ctx context.Context, task *job.Task, technologyName string) err
|
|
|
|
|
|
checker := identify.NewSingleCheck(map[string]identify.Rule{bind.Name: bind.Config})
|
|
checker := identify.NewSingleCheck(map[string]identify.Rule{bind.Name: bind.Config})
|
|
name := checker.Check(ov, nv)
|
|
name := checker.Check(ov, nv)
|
|
- println(fmt.Sprintf("ov: %s nv: %s event: %s name", ov, nv, name))
|
|
|
|
|
|
+ //println(fmt.Sprintf("ov: %s nv: %s event: %s name", ov, nv, name))
|
|
|
|
|
|
if name != "" {
|
|
if name != "" {
|
|
ht := item.GetItemHtime()
|
|
ht := item.GetItemHtime()
|
|
@@ -76,7 +76,7 @@ func EventSingle(ctx context.Context, task *job.Task, technologyName string) err
|
|
|
|
|
|
func findSingleRecord(svcCtx *svc.ServiceContext, projectId int64) ([]model.DcEventBind, error) {
|
|
func findSingleRecord(svcCtx *svc.ServiceContext, projectId int64) ([]model.DcEventBind, error) {
|
|
if binds, err := svcCtx.DcEventBind.FindByProjectIdRuleFlag(context.Background(), projectId, EVENT_SINGLE_ITEM); err != nil {
|
|
if binds, err := svcCtx.DcEventBind.FindByProjectIdRuleFlag(context.Background(), projectId, EVENT_SINGLE_ITEM); err != nil {
|
|
- logx.Infof("findSingleRecord not found record")
|
|
|
|
|
|
+ logx.Error("findSingleRecord not found record")
|
|
return nil, err
|
|
return nil, err
|
|
} else {
|
|
} else {
|
|
return binds, nil
|
|
return binds, nil
|