Skip to content

Commit

Permalink
Issue 24: Updated README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhorber committed May 18, 2018
1 parent 1cafe0a commit 57ded5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57ded5f

Please sign in to comment.