Compare commits

..

2 Commits

Author SHA1 Message Date
d5d6d7bf79 2.0.44 2021-07-21 02:25:22 +02:00
02d10dd08c fix(core): update 2021-07-21 02:25:22 +02:00
3 changed files with 5 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.43", "version": "2.0.44",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.43", "version": "2.0.44",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/isounique": "^1.0.4", "@pushrocks/isounique": "^1.0.4",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.43", "version": "2.0.44",
"private": false, "private": false,
"description": "minimalistic distributed and extensible logging tool", "description": "minimalistic distributed and extensible logging tool",
"keywords": [ "keywords": [

View File

@ -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);