Significantly drop logging

It was nice when things break all over but its much more stable now.
Lets add logging with head and with proper enrichment of the data being
sent

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
Itxaka
2023-02-08 23:27:53 +01:00
parent f490b08587
commit c5e686883e
4 changed files with 10 additions and 50 deletions

View File

@@ -67,15 +67,14 @@ Sends a generic event payload with the configuration found in the scanned direct
return err
}
log.Print(s.WriteDAG(g))
log.Info().Msg(s.WriteDAG(g))
if c.Bool("dry-run") {
return err
}
log.Print("Calling dag")
err = g.Run(context.Background())
log.Print(s.WriteDAG(g))
log.Info().Msg(s.WriteDAG(g))
return err
},
},