feat(integrations): log new events attributes

This commit is contained in:
Taha Yassine Kraiem 2022-01-28 17:00:42 +01:00
parent 1c4505a62e
commit b4ced1f28d
2 changed files with 2 additions and 1 deletions

View file

@ -130,6 +130,7 @@ func (es *elasticsearch) Request(c *client) error {
log.Println("No hits found")
break
}
log.Printf("received %d hits",len(hits))
for _, hit := range hits {
// Parse the attributes/fields of the document

View file

@ -69,7 +69,7 @@ func main() {
log.Printf("Requesting all...\n")
manager.RequestAll()
case event := <-manager.Events:
log.Printf("New integration event: %v\n", *event.RawErrorEvent)
log.Printf("New integration event: %+v\n", *event.RawErrorEvent)
sessionID := event.SessionID
if sessionID == 0 {
sessData, err := tokenizer.Parse(event.Token)