fix(core): update

This commit is contained in:
Philipp Kunz 2021-07-20 21:23:05 +02:00
parent 26c84b3a04
commit db951d1877

View File

@ -40,6 +40,9 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
const write = process.stdout.write; const write = process.stdout.write;
process.stdout.write = (...args: any) => { process.stdout.write = (...args: any) => {
const logString: string = args[0]; const logString: string = args[0];
if (!logString) {
return;
}
if (!logString.startsWith('LOG') && typeof logString === 'string') { if (!logString.startsWith('LOG') && typeof logString === 'string') {
switch (true) { switch (true) {
case logString.substr(0, 20).includes('Error:'): case logString.substr(0, 20).includes('Error:'):