fix(core): update
This commit is contained in:
parent
4062157544
commit
02d10dd08c
@ -41,9 +41,8 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
|||||||
process.stdout.write = (...args: any) => {
|
process.stdout.write = (...args: any) => {
|
||||||
const logString: string = args[0];
|
const logString: string = args[0];
|
||||||
if (!logString || typeof logString.startsWith !== 'function') {
|
if (!logString || typeof logString.startsWith !== 'function') {
|
||||||
return;
|
// lets continue as planned
|
||||||
}
|
} else 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:'):
|
||||||
this.log('error', logString);
|
this.log('error', logString);
|
||||||
|
Loading…
Reference in New Issue
Block a user