From 57ded5f33ed00f824d7ebe0bc8e72418224b5c09 Mon Sep 17 00:00:00 2001 From: Raphael Horber Date: Fri, 18 May 2018 08:58:06 +0200 Subject: [PATCH] Issue 24: Updated README.md. --- README.md | 6 ++++++ index.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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) {