diff --git a/README.md b/README.md index 90c572a..bcab505 100644 --- a/README.md +++ b/README.md @@ -76,3 +76,9 @@ Populates MongoDB with documents in dataArray. dataArray consists of objects wi Disconnects mongoose db-handle. Use it inside `populateModels` callback to cleanly exit the program (see example above). + +--- + +### seeder.setLogOutput(logOutput) + +Disables or enables calls to `console.log`. If `false` is passed, only errors will be print to console. diff --git a/index.js b/index.js index 2af3afe..31d3438 100644 --- a/index.js +++ b/index.js @@ -20,8 +20,8 @@ function consoleLog(_this, message) { } } -Seeder.prototype.setLogOutput = function (value) { - this.consoleLogEnabled = value; +Seeder.prototype.setLogOutput = function (logOutput) { + this.consoleLogEnabled = logOutput; }; Seeder.prototype.connect = function(...params) {