Skip to content

Commit

Permalink
Homogenize logs. 'repository' field
Browse files Browse the repository at this point in the history
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
  • Loading branch information
dpordomingo committed Apr 8, 2019
1 parent 5a01b70 commit 3d09922
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
@@ -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
@@ -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)

0 comments on commit 3d09922

Please sign in to comment.