diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/book.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/models/book.js b/lib/models/book.js index 4dc0238..be055d7 100644 --- a/lib/models/book.js +++ b/lib/models/book.js @@ -206,13 +206,12 @@ Book.prototype.setSummary = function(summary) { /** Change log level - @param {Book} book @param {String} level @return {Book} */ -Book.setLogLevel = function setLogLevel(book, level) { - book.getLogger().setLevel(level); - return book; +Book.prototype.setLogLevel = function(level) { + this.getLogger().setLevel(level); + return this; }; /** |