From a673844fb3f015ccfd2b338b9645bb9dc68fd0d7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 21 Jul 2021 01:48:20 +0200 Subject: [PATCH] fix(core): update --- ts/smartlog.classes.smartlog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/smartlog.classes.smartlog.ts b/ts/smartlog.classes.smartlog.ts index edbcdfb..26061af 100644 --- a/ts/smartlog.classes.smartlog.ts +++ b/ts/smartlog.classes.smartlog.ts @@ -40,7 +40,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination { const write = process.stdout.write; process.stdout.write = (...args: any) => { const logString: string = args[0]; - if (!logString) { + if (!logString || typeof logString.startsWith !== 'function') { return; } if (!logString.startsWith('LOG') && typeof logString === 'string') {