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') {