Skip to content

Commit

Permalink
feat: logger returns invocation (fixes expected behavior)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed May 12, 2023
1 parent 395bc0a commit bdabd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Cabin {
)) {
this[level] = (...args) => {
if (args[1]) args[1] = this.parseArg(args[1]);
this.config.logger[level](...Array.prototype.slice.call(args));
return this.config.logger[level](...Array.prototype.slice.call(args));
};
}

Expand Down

0 comments on commit bdabd81

Please sign in to comment.