diff --git a/metro/log-collector.js b/metro/log-collector.js index 5e4ef2f4..bbb3c7b5 100644 --- a/metro/log-collector.js +++ b/metro/log-collector.js @@ -25,7 +25,7 @@ module.exports = function logCollector () { const { level, time } = entry; if (level === undefined && time === undefined) { - throw new Error('Entry log is not a valid'); + throw new Error('Entry log is not valid'); } } catch (e) { if (DEV_ENVS.includes(process.env.NODE_ENV)) { diff --git a/metro/metrics-collector.js b/metro/metrics-collector.js index bf488c17..eb7a1112 100644 --- a/metro/metrics-collector.js +++ b/metro/metrics-collector.js @@ -72,7 +72,7 @@ module.exports = function metricsCollector () { const { request, response, stats } = entry; if (request === undefined || response === undefined || stats === undefined) { - this.push(chunk + '\n'); + this.push(chunk); return callback(); } @@ -80,7 +80,7 @@ module.exports = function metricsCollector () { const { 'carto-user': user } = headers; if (statusCode === undefined || headers === undefined || user === undefined) { - this.push(chunk + '\n'); + this.push(chunk); return callback(); }