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+'
|
flags: 'a+'
|
||||||
}); */
|
}); */
|
||||||
process.stdout.write = (...args) => {
|
process.stdout.write = (...args) => {
|
||||||
const logString = args[0];
|
const logString: string = args[0];
|
||||||
if (!logString.startsWith('LOG')) {
|
if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
||||||
switch(true) {
|
switch(true) {
|
||||||
case logString.startsWith('Error:'):
|
case logString.substr(0, 20).includes('Error:'):
|
||||||
this.log('error', logString);
|
this.log('error', logString);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user