Browse Source

use loggeR

bui 1 năm trước cách đây
mục cha
commit
01ddc45a2c

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

@@ -43,7 +43,7 @@ func (r *WaapRunner) Init(datadir string) error {
 	runnerLogger := r.logger.Dup()
 	runnerLogger := r.logger.Dup()
 
 
 	//setting up inband engine
 	//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 {
 	if !r.WaapRuntime.Config.InbandOptions.DisableBodyInspection {
 		inbandCfg = inbandCfg.WithRequestBodyAccess()
 		inbandCfg = inbandCfg.WithRequestBodyAccess()
 	} else {
 	} else {
@@ -58,7 +58,7 @@ func (r *WaapRunner) Init(datadir string) error {
 	}
 	}
 
 
 	//setting up outband engine
 	//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 {
 	if !r.WaapRuntime.Config.OutOfBandOptions.DisableBodyInspection {
 		outbandCfg = outbandCfg.WithRequestBodyAccess()
 		outbandCfg = outbandCfg.WithRequestBodyAccess()
 	} else {
 	} else {