Typo/index logs (#12528)

* typo(index): Improve logs content

* typo(index): Improve logs content

* Create metal-knives-brake.md
This commit is contained in:
Adrien de Peretti
2025-05-19 10:12:44 +02:00
committed by GitHub
parent e179f5c76e
commit ac49eb9a6c
3 changed files with 12 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/index": patch
---
Typo/index logs
@@ -250,6 +250,10 @@ export class DataSynchronizer {
const isLink = !!moduleConfig?.isLink
if (!alias) {
this.#logger.info(
`[Index engine] Cannot find Entity '${entityName}' alias. Skipping.`
)
const acknoledgement = {
lastCursor: pagination.cursor ?? null,
done: true,
@@ -35,9 +35,7 @@ export class Configuration {
}
async checkChanges(): Promise<InferEntityType<typeof IndexMetadata>[]> {
this.#logger.info(
"[Index engine] Checking for changes in the index configuration"
)
this.#logger.info("[Index engine] Checking for index changes")
const schemaObjectRepresentation = this.#schemaObjectRepresentation
const currentConfig = await this.#indexMetadataService.list()
@@ -145,9 +143,9 @@ export class Configuration {
})
this.#logger.info(
`[Index engine] Found ${changes.length} change${
`[Index engine] Found ${changes.length} index change${
changes.length > 1 ? "s" : ""
} in the index configuration that are either pending or processing`
} that are either pending or processing`
)
return changes