From 4282877ba94518e85dcc6d6af3c8942610222e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 19 May 2026 18:13:16 +0200 Subject: [PATCH] Restore log-once guard for immediate mode deprecation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- plugins/catalog-backend/src/stitching/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-backend/src/stitching/types.ts b/plugins/catalog-backend/src/stitching/types.ts index 4ca171de29..4d055513b1 100644 --- a/plugins/catalog-backend/src/stitching/types.ts +++ b/plugins/catalog-backend/src/stitching/types.ts @@ -27,6 +27,8 @@ export type StitchingStrategy = { stitchTimeout: HumanDuration; }; +let immediateDeprecationLogged = false; + export function stitchingStrategyFromConfig( config: Config, options?: { logger?: LoggerService }, @@ -35,7 +37,8 @@ export function stitchingStrategyFromConfig( 'catalog.stitchingStrategy.mode', ); - if (strategyMode === 'immediate') { + 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.", );