bui 1 year ago
parent
commit
4a38cb5bbb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pkg/acquisition/modules/waf/utils.go

+ 3 - 3
pkg/acquisition/modules/waf/utils.go

@@ -67,8 +67,8 @@ func (r *WafRunner) AccumulateTxToEvent(tx experimental.FullTransaction, kind st
 
 
 	//log.Infof("tx addr: %p", tx)
 	//log.Infof("tx addr: %p", tx)
 	if tx.IsInterrupted() {
 	if tx.IsInterrupted() {
-		r.logger.Infof("interrupted() = %t", tx.IsInterrupted())
-		r.logger.Infof("interrupted.action = %s", tx.Interruption().Action)
+		//r.logger.Infof("interrupted() = %t", tx.IsInterrupted())
+		//r.logger.Infof("interrupted.action = %s", tx.Interruption().Action)
 		if evt.Meta == nil {
 		if evt.Meta == nil {
 			evt.Meta = map[string]string{}
 			evt.Meta = map[string]string{}
 		}
 		}
@@ -106,7 +106,7 @@ func (r *WafRunner) AccumulateTxToEvent(tx experimental.FullTransaction, kind st
 				match := collectionToKeep.MatchString(key)
 				match := collectionToKeep.MatchString(key)
 				if match {
 				if match {
 					evt.Waap.Vars[key] = variable.Value()
 					evt.Waap.Vars[key] = variable.Value()
-					r.logger.Infof("%s.%s = %s", variable.Variable().Name(), variable.Key(), variable.Value())
+					r.logger.Debugf("%s.%s = %s", variable.Variable().Name(), variable.Key(), variable.Value())
 				} else {
 				} else {
 					r.logger.Debugf("%s.%s != %s (%s) (not kept)", variable.Variable().Name(), variable.Key(), collectionToKeep, variable.Value())
 					r.logger.Debugf("%s.%s != %s (%s) (not kept)", variable.Variable().Name(), variable.Key(), collectionToKeep, variable.Value())
 				}
 				}