Skip to content

Conversation

@kegsay
Copy link
Member

@kegsay kegsay commented Feb 20, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.8%) to 80.189% when pulling bb66103 on kegan/ctx-typesafe-access into 0f4d9cc on master.

@NegativeMjark
Copy link
Contributor

NegativeMjark commented Feb 20, 2017

This looks good. Ideally we'd also hide the ContextKeys type so that other modules can't set the wrong type of logger into the context.

json.go Outdated
type ContextKeys string

// CtxValueLogger is the key to extract the logrus Logger.
const CtxValueLogger = ContextKeys("logger")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the ContextKeys type and the CtxValueLogger const private?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@NegativeMjark NegativeMjark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'd like us to hide the Context keys here.

@kegsay
Copy link
Member Author

kegsay commented Feb 20, 2017

@NegativeMjark PTAL

Copy link
Contributor

@NegativeMjark NegativeMjark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kegsay kegsay merged commit 4c35914 into master Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants