Skip to content

Conversation

blazzy
Copy link
Contributor

@blazzy blazzy commented Dec 5, 2018

No description provided.

@blazzy blazzy changed the title Fix bug preventing logLevel from being set to disabled Fix bug preventing logLevel from being set to DISABLE Dec 5, 2018
test/utils.js Outdated

it('can set log level to DISABLE', function() {
utils.setLogLevel('DISABLE');
assert.strictEqual(utils.getLogLevel(), 0);
Copy link

Choose a reason for hiding this comment

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

nit, assert on logLevels.DISABLE

Copy link
Contributor Author

@blazzy blazzy Dec 7, 2018

Choose a reason for hiding this comment

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

Thanks updated.

This API is kind of dumb. setLogLevel takes a string and getLogLevel returns this enumerated value. :-/

@blazzy blazzy force-pushed the fix-disable-log-level branch from 699ae43 to b303de7 Compare December 6, 2018 19:11
@blazzy blazzy force-pushed the fix-disable-log-level branch from b303de7 to 972add4 Compare December 7, 2018 19:04
@blazzy blazzy merged commit ed2f683 into master Dec 7, 2018
@blazzy blazzy deleted the fix-disable-log-level branch December 7, 2018 19:05
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.

2 participants