Do not use global logger in middlewares, use the one initialized in res.locals instead

This commit is contained in:
Daniel García Aubert
2020-06-02 09:00:45 +02:00
parent e644201756
commit 62d66f2dbc
11 changed files with 20 additions and 26 deletions
-1
View File
@@ -95,7 +95,6 @@ module.exports = class AnonymousMapController {
metrics({
enabled: this.config.pubSubMetrics.enabled,
metricsBackend: this.metricsBackend,
logger: global.logger,
tags: metricsTags
}),
credentials(),