fix(core): update
This commit is contained in:
parent
7b5cfb2c95
commit
8b0ceb759d
@ -42,10 +42,10 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
||||
flags: 'a+'
|
||||
}); */
|
||||
process.stdout.write = (...args) => {
|
||||
const logString = args[0];
|
||||
if (!logString.startsWith('LOG')) {
|
||||
const logString: string = args[0];
|
||||
if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
||||
switch(true) {
|
||||
case logString.startsWith('Error:'):
|
||||
case logString.substr(0, 20).includes('Error:'):
|
||||
this.log('error', logString);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user