fix: Loading custom modules (#6411)

What:
   fix custom modules loading in medusa project
   pass medusa logger reference to MedusaApp
This commit is contained in:
Carlos R. L. Rodrigues
2024-02-15 15:06:02 +00:00
committed by GitHub
parent 339a946f38
commit 586df9da25
4 changed files with 29 additions and 7 deletions
@@ -108,7 +108,7 @@ export const initialize = async (
}
const logger =
injectedDependencies?.[ContainerRegistrationKeys.LOGGER] ?? console.log
injectedDependencies?.[ContainerRegistrationKeys.LOGGER] ?? console
definition.schema = generateGraphQLSchema(definition, primary, foreign, {
logger,