Skip to content

Commit d97463b

Browse files
committed
Only output timing information if debug is set to true.
Trying to make STDERR quieter
1 parent c7b9225 commit d97463b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/eslint.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ function runWithTiming(name, fn) {
2323
var start = new Date()
2424
, rv = fn()
2525
, duration = (new Date() - start) / 1000;
26-
console.error("eslint.timing." + name + ": " + duration + "s");
26+
if(debug) {
27+
console.error("eslint.timing." + name + ": " + duration + "s");
28+
}
2729
return rv;
2830
}
2931

0 commit comments

Comments
 (0)