This commit is contained in:
Daniel García Aubert 2020-06-09 10:00:54 +02:00
parent 6f9580bae2
commit 7acbfc1e9b
2 changed files with 3 additions and 3 deletions

View File

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

View File

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