diff --git a/plugins/catalog-backend/src/stitching/types.ts b/plugins/catalog-backend/src/stitching/types.ts index 5e11f17fab..5bcbf3f68b 100644 --- a/plugins/catalog-backend/src/stitching/types.ts +++ b/plugins/catalog-backend/src/stitching/types.ts @@ -37,11 +37,13 @@ export function stitchingStrategyFromConfig( 'catalog.stitchingStrategy.mode', ); - if (strategyMode === 'immediate' && !immediateDeprecationLogged) { - immediateDeprecationLogged = true; - options?.logger?.warn( - "The 'immediate' stitching strategy mode has been removed and is no longer supported. Falling back to deferred stitching. Please remove the 'catalog.stitchingStrategy.mode' configuration key.", - ); + if (strategyMode === 'immediate') { + if (!immediateDeprecationLogged) { + immediateDeprecationLogged = true; + options?.logger?.warn( + "The 'immediate' stitching strategy mode has been removed and is no longer supported. Falling back to deferred stitching. Please remove the 'catalog.stitchingStrategy.mode' configuration key.", + ); + } } else if (strategyMode !== undefined && strategyMode !== 'deferred') { options?.logger?.warn( `Unknown stitching strategy mode '${strategyMode}', falling back to deferred stitching. Please remove or correct the 'catalog.stitchingStrategy.mode' configuration key.`,