Skip to content

Commit

Permalink
Merge pull request #206 from xmidt-org/denopink/patch/add-missing-sat…
Browse files Browse the repository at this point in the history
…ID-log-fields

patch: add missing log field `satClientID`
  • Loading branch information
denopink committed Aug 9, 2023
2 parents 4e8a980 + fc53c6c commit 4df592c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions basculehttp/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ func SetBasculeInfo() alice.Constructor {
satClientID = auth.Token.Principal()
}

logger.With(zap.String("satClientID", satClientID))

r = r.WithContext(sallust.With(ctx, logger))

r = r.WithContext(sallust.With(ctx, logger.With(zap.String("satClientID", satClientID))))
delegate.ServeHTTP(w, r)
})
}
Expand Down

0 comments on commit 4df592c

Please sign in to comment.