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

Commit d520c24

Browse files
authored
Merge pull request #245 from alexheretic/fix-logging-array-wrappers
Fix logging array wrappers
2 parents 1251de8 + 6a095cd commit d520c24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/logger.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,31 @@ export class FilteredLogger {
7373

7474
public warn(...args: any[]): void {
7575
if (this._predicate('warn', args)) {
76-
this._logger.warn(args);
76+
this._logger.warn(...args);
7777
}
7878
}
7979

8080
public error(...args: any[]): void {
8181
if (this._predicate('error', args)) {
82-
this._logger.error(args);
82+
this._logger.error(...args);
8383
}
8484
}
8585

8686
public info(...args: any[]): void {
8787
if (this._predicate('info', args)) {
88-
this._logger.info(args);
88+
this._logger.info(...args);
8989
}
9090
}
9191

9292
public debug(...args: any[]): void {
9393
if (this._predicate('debug', args)) {
94-
this._logger.debug(args);
94+
this._logger.debug(...args);
9595
}
9696
}
9797

9898
public log(...args: any[]): void {
9999
if (this._predicate('log', args)) {
100-
this._logger.log(args);
100+
this._logger.log(...args);
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)