Skip to content

Add a more-explicit NewNop constructor#326

Merged
akshayjshah merged 1 commit into
masterfrom
ajs-nicer-nop
Feb 20, 2017
Merged

Add a more-explicit NewNop constructor#326
akshayjshah merged 1 commit into
masterfrom
ajs-nicer-nop

Conversation

@akshayjshah
Copy link
Copy Markdown
Contributor

New already takes a variadic number of options, so we can't also take a
variadic number of cores. Instead, add a niladic NewNop constructor that
returns a no-op Logger.

This is already covered by tests, and is also backwards-compatible.

@sectioneight, this should fix one of your comments on the UberFX logging
upgrade PR.

`New` already takes a variadic number of options, so we can't also take a
variadic number of cores. Instead, add a niladic `NewNop` constructor that
returns a no-op Logger.

This is already covered by tests, and is also backwards-compatible.
@mention-bot
Copy link
Copy Markdown

@akshayjshah, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jcorbin, @peter-edge and @skipor to be potential reviewers.

@akshayjshah akshayjshah changed the title Add a more-explicit NewNop Logger constructor Add a more-explicit NewNop constructor Feb 19, 2017
Copy link
Copy Markdown

@ascandella ascandella left a comment

Choose a reason for hiding this comment

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

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants