Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 4feeb32

Browse files
committed
Allow disabling logging with loggerFn: false
1 parent 6505f65 commit 4feeb32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ function parse(code, options) {
100100
*/
101101
if (typeof options.loggerFn === "function") {
102102
extra.log = options.loggerFn;
103+
} else if (options.loggerFn === false) {
104+
/** */ // eslint-disable-line valid-jsdoc
105+
extra.log = () => {};
103106
}
104107

105108
}

0 commit comments

Comments
 (0)