Skip to content

Commit

Permalink
github provider: fix: webhook type specific event.Logfields got lost
Browse files Browse the repository at this point in the history
set the ev.Logfields after all logfields were added to the slice
  • Loading branch information
fho committed Mar 17, 2021
1 parent 40018f2 commit 8355677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ func (p *Provider) HttpHandler(resp http.ResponseWriter, req *http.Request) {
ev := provider.Event{
Json: payload,
Provider: "github",
LogFields: logFields,
DeliveryID: deliveryID,
EventType: hookType,
}
Expand Down Expand Up @@ -141,6 +140,7 @@ func (p *Provider) HttpHandler(resp http.ResponseWriter, req *http.Request) {
}

logger = logger.With(logFields...)
ev.LogFields = logFields

select {
case p.c <- &ev:
Expand Down

0 comments on commit 8355677

Please sign in to comment.