Commit eaa62633 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

debug

parent 0ecd4716
...@@ -1052,6 +1052,7 @@ func (s *wafService) deleteConfigMap(ctx context.Context, id uint32, regionCode ...@@ -1052,6 +1052,7 @@ func (s *wafService) deleteConfigMap(ctx context.Context, id uint32, regionCode
} }
func (s *wafService) DeleteBlackWhiteList(ctx context.Context, ID uint32) error { func (s *wafService) DeleteBlackWhiteList(ctx context.Context, ID uint32) error {
log.Info().Interface("delete black white list", ID).Msg("delete black white list")
matcherExpr := model.MatcherExpr{} matcherExpr := model.MatcherExpr{}
err := s.db.WithContext(ctx).Where("id = ?", ID).First(&matcherExpr).Error err := s.db.WithContext(ctx).Where("id = ?", ID).First(&matcherExpr).Error
if err != nil { if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment