diff --git a/metro/index.js b/metro/index.js index c655a214..123e147f 100644 --- a/metro/index.js +++ b/metro/index.js @@ -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); diff --git a/metro/log-collector.js b/metro/log-collector.js index e8670e30..88123db9 100644 --- a/metro/log-collector.js +++ b/metro/log-collector.js @@ -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); }