-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't log if logging is disabled #50
Conversation
Running into this at the moment |
tests please |
@stefanpenner on their way, would you prefer the guard in the |
@rlivsey all of logLookup should be guarded. |
Ok, updated & added some tests. The tests just check to see whether anything was logged at all, not their content, which I hope is sufficient for this specific pull request. |
@@ -200,12 +200,14 @@ define("ember/resolver", | |||
} | |||
|
|||
if (tmpModuleName && moduleEntries[tmpModuleName]) { | |||
self._logLookup(true, parsedName, tmpModuleName); | |||
if (!loggingDisabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does findModuleName
get called other then lookupDescription
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up in resolveOther
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Don't log if logging is disabled
Previously this guard was in the logging method itself, should it be moved back there instead?