Skip to content

Commit

Permalink
Fixed up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanzz authored Mar 1, 2018
1 parent 3d7e005 commit ae645d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logrus/ctxlogrus/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var logrusLogger *logrus.Logger
// Simple unary handler that adds custom fields to the requests's context. These will be used for all log statements.
func ExampleExtract_unary() {
ctx := context.Background()
// setting tags will be added to the loggerr as log fields
// setting tags will be added to the logger as log fields
grpc_ctxtags.Extract(ctx).Set("custom_tags.string", "something").Set("custom_tags.int", 1337)
// Extract a single request-scoped logrus.Logger and log messages.
l := ctxlogrus.Extract(ctx)
Expand Down

0 comments on commit ae645d6

Please sign in to comment.