Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi committed Nov 20, 2024
1 parent 6918a61 commit 0d662fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/sources/webhook/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func (e *Events) getPipelineEvent(rawData []byte) (entities.PipelineEvent, error

id := parsed.Get(event.FieldID).String()
if id == "" {
e.logger.WithFields(logrus.Fields{
"webhookEvent": webhookEvent,
"event": string(rawData),
}).Trace("unsupported webhook event")
return nil, fmt.Errorf("%w: %s", ErrMissingFieldID, event.FieldID)
}

Expand Down

0 comments on commit 0d662fe

Please sign in to comment.