Metro: stop aggregating log per request id, use new config.json file
This commit is contained in:
@@ -9,7 +9,6 @@ module.exports = function initLogger ({ logger }) {
|
||||
|
||||
res.locals.logger.info({ request: req });
|
||||
res.on('finish', () => res.locals.logger.info({ response: res }));
|
||||
res.on('close', () => res.locals.logger.info({ end: true }));
|
||||
|
||||
next();
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = function profiler (options) {
|
||||
res.on('finish', () => {
|
||||
req.profiler.done('response');
|
||||
req.profiler.end();
|
||||
logger.info({ stats: req.profiler.toJSON() });
|
||||
logger.info({ user: res.locals.user, stats: req.profiler.toJSON() });
|
||||
|
||||
try {
|
||||
// May throw due to dns, see: http://github.com/CartoDB/Windshaft/issues/166
|
||||
|
||||
Reference in New Issue
Block a user