This commit is contained in:
alteredCoder 2023-07-19 11:57:14 +02:00
parent d946286e5c
commit cd5cb55a7e

View file

@ -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)