This commit is contained in:
Daniel García Aubert 2020-07-01 10:53:44 +02:00
parent c1e02c2c95
commit d3a1974569
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const split = require('split2');
const logCollector = require('./log-collector');
const metricsCollector = require('./metrics-collector');
const streams = [process.stdin, split(), logCollector(), metricsCollector(), process.stdout]
const streams = [process.stdin, split(), logCollector(), metricsCollector(), process.stdout];
pipeline('pipe', streams);

View File

@ -58,7 +58,7 @@ module.exports = function logCollector () {
}
if (accEntry.level > entry.level) {
delete entry.level
delete entry.level;
}
if (hasProperty(accEntry, 'error') && hasProperty(entry, 'error')) {
@ -101,5 +101,5 @@ module.exports = function logCollector () {
};
function hasProperty (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
return Object.prototype.hasOwnProperty.call(obj, prop);
}