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 authored and GitHub committed 2024-02-15 15:06:02 +00:00
1 parent 339a946f38
commit 586df9da25
4 files changed
+29 -7

No files matched your search

@@ -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,