Skip to content

Commit 28f058b

Browse files
fix: pass correct args when using deprecated logger API
Several logger methods have been deprecated, but their usage had been broken. Fix it until we delete them. The current problem arises when we pass several args to the `logger.out` (or any deprecated method).
1 parent aa89134 commit 28f058b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/common/logger/logger.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ export class Logger implements ILogger {
199199
*******************************************************************************************/
200200

201201
out(...args: any[]): void {
202-
this.info(args);
202+
this.info(...args);
203203
}
204204

205205
write(...args: any[]): void {
206-
this.info(args, { [LoggerConfigData.skipNewLine]: true });
206+
this.info(...args, { [LoggerConfigData.skipNewLine]: true });
207207
}
208208

209209
printOnStderr(...args: string[]): void {
210-
this.error(args);
210+
this.error(...args);
211211
}
212212

213213
printInfoMessageOnSameLine(message: string): void {

0 commit comments

Comments
 (0)