Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #245 from alexheretic/fix-logging-array-wrappers
Browse files Browse the repository at this point in the history
Fix logging array wrappers
  • Loading branch information
damieng authored Nov 28, 2018
2 parents 1251de8 + 6a095cd commit d520c24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,31 @@ export class FilteredLogger {

public warn(...args: any[]): void {
if (this._predicate('warn', args)) {
this._logger.warn(args);
this._logger.warn(...args);
}
}

public error(...args: any[]): void {
if (this._predicate('error', args)) {
this._logger.error(args);
this._logger.error(...args);
}
}

public info(...args: any[]): void {
if (this._predicate('info', args)) {
this._logger.info(args);
this._logger.info(...args);
}
}

public debug(...args: any[]): void {
if (this._predicate('debug', args)) {
this._logger.debug(args);
this._logger.debug(...args);
}
}

public log(...args: any[]): void {
if (this._predicate('log', args)) {
this._logger.log(args);
this._logger.log(...args);
}
}
}

0 comments on commit d520c24

Please sign in to comment.