diff --git a/src/config/setup-container.mjs b/src/config/setup-container.mjs index b8d8f511..803a27d8 100644 --- a/src/config/setup-container.mjs +++ b/src/config/setup-container.mjs @@ -71,7 +71,7 @@ export const injectables = { // generic lib (homemade utilities) parseYargs: awilix.asValue(parseYargs), - logger: awilix.asFunction(buildLogger), + logger: awilix.asFunction(buildLogger, { lifetime: Lifetime.SINGLETON }), performV4Query: awilix.asValue(performV4Query), performV10Query: awilix.asValue(performV10Query), getSimpleClient: awilix.asValue(getSimpleClient),