remotes/origin/dgaubert/ch78384/maps-api-replace-log4js-logger-by-pino
Daniel García Aubert 4 years ago
parent 6f9580bae2
commit 7acbfc1e9b

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

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

Loading…
Cancel
Save