Skip to content

Only output timing information if debug is set to true. #71

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

Merged
merged 2 commits into from
Feb 9, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Only output timing information if debug is set to true.
Trying to make STDERR quieter
  • Loading branch information
gdiggs committed Feb 9, 2016
commit 08891fa636516bb0134e90875e45a5f23725aeb4
4 changes: 3 additions & 1 deletion bin/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function runWithTiming(name, fn) {
var start = new Date()
, rv = fn()
, duration = (new Date() - start) / 1000;
console.error("eslint.timing." + name + ": " + duration + "s");
if (debug) {
console.error("eslint.timing." + name + ": " + duration + "s");
}
return rv;
}

Expand Down