up
This commit is contained in:
parent
e49f33b4a7
commit
6cbeefead6
|
@ -42,7 +42,6 @@ func (r *WaapRunner) Init(datadir string) error {
|
||||||
}
|
}
|
||||||
//adapt the logger level to the WAAP
|
//adapt the logger level to the WAAP
|
||||||
runnerLogger := r.logger.Dup()
|
runnerLogger := r.logger.Dup()
|
||||||
runnerLogger.Logger.SetLevel(r.WaapRuntime.Config.LogLevel)
|
|
||||||
runnerLogger.Infof("setting logger of %s to %s", r.WaapRuntime.Name, r.WaapRuntime.Config.LogLevel)
|
runnerLogger.Infof("setting logger of %s to %s", r.WaapRuntime.Name, r.WaapRuntime.Config.LogLevel)
|
||||||
r.WaapInbandEngine, err = coraza.NewWAF(
|
r.WaapInbandEngine, err = coraza.NewWAF(
|
||||||
coraza.NewWAFConfig().WithDirectives(inBandRules).WithRootFS(fs).WithDebugLogger(NewCrzLogger(runnerLogger)),
|
coraza.NewWAFConfig().WithDirectives(inBandRules).WithRootFS(fs).WithDebugLogger(NewCrzLogger(runnerLogger)),
|
||||||
|
|
Loading…
Reference in a new issue