Commit 542e2a00 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Change WAF detection log level from Debug to Info

- Update log level for WAF detection query source logging
- Improve visibility of Elasticsearch query source information
parent 79468cd7
...@@ -806,7 +806,7 @@ func (s *wafService) ListAttackLogs(ctx context.Context, req *AttackLogFilter) ( ...@@ -806,7 +806,7 @@ func (s *wafService) ListAttackLogs(ctx context.Context, req *AttackLogFilter) (
boolQuery.Filter(rangeQuery) boolQuery.Filter(rangeQuery)
} }
src, _ := boolQuery.Source() src, _ := boolQuery.Source()
log.Debug().Interface("src", src.(map[string]interface{})).Msg("find waf detections src") log.Info().Interface("src", src.(map[string]interface{})).Msg("find waf detections src")
ss := s.elasticClient.Search("waf-detections*") ss := s.elasticClient.Search("waf-detections*")
if req.Token != "" { if req.Token != "" {
......
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