From db951d187707a0641e2fd63ea44c61307d056f1e Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 20 Jul 2021 21:23:05 +0200 Subject: [PATCH] fix(core): update --- ts/smartlog.classes.smartlog.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/smartlog.classes.smartlog.ts b/ts/smartlog.classes.smartlog.ts index 8480655..edbcdfb 100644 --- a/ts/smartlog.classes.smartlog.ts +++ b/ts/smartlog.classes.smartlog.ts @@ -40,6 +40,9 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination { const write = process.stdout.write; process.stdout.write = (...args: any) => { const logString: string = args[0]; + if (!logString) { + return; + } if (!logString.startsWith('LOG') && typeof logString === 'string') { switch (true) { case logString.substr(0, 20).includes('Error:'):