Skip to content

Commit

Permalink
Merge pull request #622 from dpordomingo/logs
Browse files Browse the repository at this point in the history
Homogenize logs. 'repository' field
  • Loading branch information
dpordomingo authored Apr 8, 2019
2 parents 129b58e + 3d09922 commit a37e845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/github/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (w *Watcher) handlePrs(ctx context.Context,
return nil
}

ctx, logger := ctxlog.WithLogFields(ctx, log.Fields{"repo": r.CloneURL})
ctx, logger := ctxlog.WithLogFields(ctx, log.Fields{"repository": r.CloneURL})

for _, e := range prs {
// github doesn't run any checks on draft PRs
Expand Down Expand Up @@ -291,7 +291,7 @@ func (w *Watcher) handleEvents(
return nil
}

ctx, logger := ctxlog.WithLogFields(ctx, log.Fields{"repo": r.CloneURL})
ctx, logger := ctxlog.WithLogFields(ctx, log.Fields{"repository": r.CloneURL})

for _, e := range events {
event, err := w.handleEvent(r, e)
Expand Down

0 comments on commit a37e845

Please sign in to comment.