Skip to content

Allow Logger objects to have their levels set - #2

Open
noelleleigh wants to merge 1 commit into
vectrlabs:masterfrom
noelleleigh:patch-1
Open

noelleleigh wants to merge 1 commit into
vectrlabs:masterfrom
noelleleigh:patch-1

Conversation

@noelleleigh

Copy link
Copy Markdown

Current broken behavior

When loglevelDebug() is passed an Object (rather than a String) and DEBUG is truthy, the logger won't have its level set in enable() because it won't appear in the _loggers object.

New behavior

If loglevelDebug() is passed an Object, it will now get added to the _loggers object.

If `loglevelDebug` is passed a Logger object, it will now get added to the `_loggers` object.
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.

1 participant