From 02d10dd08c04c1f3ee9d0270d19b6d30216fbfd7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 21 Jul 2021 02:25:22 +0200 Subject: [PATCH] fix(core): update --- ts/smartlog.classes.smartlog.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/smartlog.classes.smartlog.ts b/ts/smartlog.classes.smartlog.ts index 26061af..a460b3c 100644 --- a/ts/smartlog.classes.smartlog.ts +++ b/ts/smartlog.classes.smartlog.ts @@ -41,9 +41,8 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination { process.stdout.write = (...args: any) => { const logString: string = args[0]; if (!logString || typeof logString.startsWith !== 'function') { - return; - } - if (!logString.startsWith('LOG') && typeof logString === 'string') { + // lets continue as planned + } else if (!logString.startsWith('LOG') && typeof logString === 'string') { switch (true) { case logString.substr(0, 20).includes('Error:'): this.log('error', logString);