fix(core): update

This commit is contained in:
Philipp Kunz 2021-07-21 01:48:20 +02:00
parent 53248a3a3d
commit a673844fb3

View File

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