Skip to content

Commit

Permalink
Add analyzer field to ctxlog
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Martín <[email protected]>
  • Loading branch information
carlosms committed Dec 28, 2018
1 parent 98b6c09 commit 1b1a7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (s *Server) concurrentRequest(ctx context.Context, conf map[string]lookout.
var result *lookout.AnalyzerComments
defer func() { commentsCh <- result }()

aLogger := ctxlog.Get(ctx).With(log.Fields{
ctx, aLogger := ctxlog.WithLogFields(ctx, log.Fields{
"analyzer": name,
})

Expand Down

0 comments on commit 1b1a7c3

Please sign in to comment.