debug
This commit is contained in:
parent
d946286e5c
commit
cd5cb55a7e
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/crowdsecurity/coraza/v3/experimental"
|
||||
"github.com/crowdsecurity/crowdsec/pkg/types"
|
||||
"github.com/crowdsecurity/crowdsec/pkg/waf"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -56,7 +57,7 @@ func LogWaapEvent(evt *types.Event) {
|
|||
}
|
||||
|
||||
func AccumulateTxToEvent(tx experimental.FullTransaction, kind string, evt *types.Event) error {
|
||||
|
||||
log.Infof("TX %s", spew.Sdump(tx))
|
||||
if tx.IsInterrupted() {
|
||||
log.Infof("interrupted() = %t", tx.IsInterrupted())
|
||||
log.Infof("interrupted.action = %s", tx.Interruption().Action)
|
||||
|
|
Loading…
Reference in a new issue