Skip to content

Commit

Permalink
Make contextKeys private
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 20, 2017
1 parent a66e0bc commit 62e09d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions json.go
Expand Up @@ -12,11 +12,11 @@ import (
log "github.com/Sirupsen/logrus"
)

// ContextKeys is a type alias for string to namespace Context keys per-package.
type ContextKeys string
// contextKeys is a type alias for string to namespace Context keys per-package.
type contextKeys string

// ctxValueLogger is the key to extract the logrus Logger.
const ctxValueLogger = ContextKeys("logger")
const ctxValueLogger = contextKeys("logger")

// GetLogger retrieves the logrus logger from the supplied context. Returns nil if there is no logger.
func GetLogger(ctx context.Context) *log.Entry {
Expand Down

0 comments on commit 62e09d4

Please sign in to comment.