Skip to content
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

Fancier logging! #3

Merged
merged 3 commits into from
Nov 12, 2013
Merged

Fancier logging! #3

merged 3 commits into from
Nov 12, 2013

Conversation

jonkirkman
Copy link
Contributor

Display both fullname as passed into the resolver and the module identifier that is requested via requirejs.

I think this makes it much easier to understand what the resolver is doing.

What do you think?

…nd the module identifier that is requested via requirejs.
@rwjblue
Copy link
Member

rwjblue commented Nov 11, 2013

I like it! Can you fix the build failure (JSHint issue)?

@stefanpenner
Copy link
Contributor

nice

@@ -113,13 +113,13 @@ define("resolver",
}

if (Ember.ENV.LOG_MODULE_RESOLVER) {
Ember.Logger.info('hit', moduleName);
Ember.Logger.info('[*]', parsedName.fullName, Array(40 - parsedName.fullName.length).join('.'), moduleName);
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe use: ✓ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that.
Given Ember code standards, can we use ✓ (the unicode character) in the code or should we use String.fromCharCode(0x2713) ?

@rwjblue
Copy link
Member

rwjblue commented Nov 11, 2013

Possibly out of scope, but I'd love to start adding tests for future changes.

In this case we could just test that hit and miss return the expected value.

@bobjackman
Copy link

Looks great to me :)

@stefanpenner
Copy link
Contributor

thoughts on my unicode checkmark proposal?

@jonkirkman
Copy link
Contributor Author

I like the idea of using the checkmark.
Given Ember code standards, can we use ✓ (the unicode character) in the code or should we use String.fromCharCode(0x2713) ?

@stefanpenner
Copy link
Contributor

✓ should be fine, unless their exists an issue i am aware of.

@twokul
Copy link

twokul commented Nov 12, 2013

👍

stefanpenner added a commit that referenced this pull request Nov 12, 2013
@stefanpenner stefanpenner merged commit 2526d93 into ember-cli:master Nov 12, 2013
kratiahuja pushed a commit to kratiahuja/ember-resolver that referenced this pull request Aug 5, 2016
Add license and barebones README.
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.

5 participants