Skip to content

Commit c226d65

Browse files
Merge pull request #4670 from NativeScript/vladimirov/fix-deprecated-logger-apis
fix: pass correct args when using deprecated logger API
2 parents aa89134 + 28f058b commit c226d65

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)