diff --git a/lib/api/api-router.js b/lib/api/api-router.js index 699fc0a9..3923a2bb 100644 --- a/lib/api/api-router.js +++ b/lib/api/api-router.js @@ -222,7 +222,8 @@ module.exports = class ApiRouter { apiRouter.use(errorMiddleware()); apiRouter.use(pubSubMetrics({ enabled: this.serverOptions.pubSubMetrics.enabled, - metricsBackend: this.pubSubMetricsBackend + metricsBackend: this.pubSubMetricsBackend, + logger: global.logger })); paths.forEach(path => app.use(path, apiRouter));