Browse Source

use loggeR

bui 1 year ago
parent
commit
01ddc45a2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/acquisition/modules/waap/waap_runner.go

+ 2 - 2
pkg/acquisition/modules/waap/waap_runner.go

@@ -43,7 +43,7 @@ func (r *WaapRunner) Init(datadir string) error {
 	runnerLogger := r.logger.Dup()
 
 	//setting up inband engine
-	inbandCfg := coraza.NewWAFConfig().WithDirectives(inBandRules).WithRootFS(fs).WithDebugLogger(NewCrzLogger(runnerLogger))
+	inbandCfg := coraza.NewWAFConfig().WithDirectives(inBandRules).WithRootFS(fs).WithDebugLogger(waf.NewCrzLogger(runnerLogger))
 	if !r.WaapRuntime.Config.InbandOptions.DisableBodyInspection {
 		inbandCfg = inbandCfg.WithRequestBodyAccess()
 	} else {
@@ -58,7 +58,7 @@ func (r *WaapRunner) Init(datadir string) error {
 	}
 
 	//setting up outband engine
-	outbandCfg := coraza.NewWAFConfig().WithDirectives(outOfBandRules).WithRootFS(fs).WithDebugLogger(NewCrzLogger(runnerLogger))
+	outbandCfg := coraza.NewWAFConfig().WithDirectives(outOfBandRules).WithRootFS(fs).WithDebugLogger(waf.NewCrzLogger(runnerLogger))
 	if !r.WaapRuntime.Config.OutOfBandOptions.DisableBodyInspection {
 		outbandCfg = outbandCfg.WithRequestBodyAccess()
 	} else {