-
Notifications
You must be signed in to change notification settings - Fork 479
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
Clean up / refactor logging #579
Conversation
Reduces logspew by ~600 lines |
* Compile a template to an invokable function. | ||
* If `name` is provided, also registers the template under `name`. | ||
* @param source {String} template source | ||
* @param name {String} template name |
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.
template name is optional. i think there's a jsdoc syntax for that @param [name] {string}
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.
Cool, updated
LOOKS good! |
301544e
to
c02b88d
Compare
Spew comparison: Old: https://travis-ci.org/linkedin/dustjs/jobs/55233215 |
@@ -710,7 +677,6 @@ | |||
} else if (skip) { | |||
return skip(this, context); | |||
} | |||
dust.log('Not rendering exists (?) block in template [' + context.getTemplateName() + '], because above key was not found', DEBUG); |
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.
We may have to keep this one.
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.
added back
7355bd8
to
0ac0c53
Compare
Updated with Prash's comments:
|
0ac0c53
to
6302f25
Compare
6302f25
to
6c1c968
Compare
Similar to LinkedInAttic/dustjs-helpers#119
Normalizes all log messages, removes some spew, fixes some logs that would never be logged, and removes the indexOf shim in favor of a map lookup.
Closes #485