Typo/index logs (#12528)
* typo(index): Improve logs content * typo(index): Improve logs content * Create metal-knives-brake.md
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/index": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Typo/index logs
|
||||||
@@ -250,6 +250,10 @@ export class DataSynchronizer {
|
|||||||
const isLink = !!moduleConfig?.isLink
|
const isLink = !!moduleConfig?.isLink
|
||||||
|
|
||||||
if (!alias) {
|
if (!alias) {
|
||||||
|
this.#logger.info(
|
||||||
|
`[Index engine] Cannot find Entity '${entityName}' alias. Skipping.`
|
||||||
|
)
|
||||||
|
|
||||||
const acknoledgement = {
|
const acknoledgement = {
|
||||||
lastCursor: pagination.cursor ?? null,
|
lastCursor: pagination.cursor ?? null,
|
||||||
done: true,
|
done: true,
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ export class Configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkChanges(): Promise<InferEntityType<typeof IndexMetadata>[]> {
|
async checkChanges(): Promise<InferEntityType<typeof IndexMetadata>[]> {
|
||||||
this.#logger.info(
|
this.#logger.info("[Index engine] Checking for index changes")
|
||||||
"[Index engine] Checking for changes in the index configuration"
|
|
||||||
)
|
|
||||||
const schemaObjectRepresentation = this.#schemaObjectRepresentation
|
const schemaObjectRepresentation = this.#schemaObjectRepresentation
|
||||||
|
|
||||||
const currentConfig = await this.#indexMetadataService.list()
|
const currentConfig = await this.#indexMetadataService.list()
|
||||||
@@ -145,9 +143,9 @@ export class Configuration {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.#logger.info(
|
this.#logger.info(
|
||||||
`[Index engine] Found ${changes.length} change${
|
`[Index engine] Found ${changes.length} index change${
|
||||||
changes.length > 1 ? "s" : ""
|
changes.length > 1 ? "s" : ""
|
||||||
} in the index configuration that are either pending or processing`
|
} that are either pending or processing`
|
||||||
)
|
)
|
||||||
|
|
||||||
return changes
|
return changes
|
||||||
|
|||||||
Reference in New Issue
Block a user