add debug
This commit is contained in:
parent
a58df696cf
commit
d0e11a84e7
1 changed files with 3 additions and 0 deletions
|
@ -155,9 +155,12 @@ func (o *Output) ProcessOutput(sig types.SignalOccurence, profiles []types.Profi
|
|||
logger.Infof("Processing Overflow with no decisions %s", sig.Alert_message)
|
||||
}
|
||||
|
||||
log.Printf("Checking if can push to API totototo")
|
||||
// if ApiPush is nil (not specified in profile configuration) we use global api config (from default.yaml)
|
||||
if profile.ApiPush == nil {
|
||||
log.Printf("profile configured to push in API totototo")
|
||||
if o.API != nil { // if API is not nil, we can push
|
||||
log.Printf("Can append signal to API totototo")
|
||||
if err = o.API.AppendSignal((sig)); err != nil {
|
||||
return fmt.Errorf("failed to append signal : %s", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue