From 040cccef0c09cd191b79a025333deabc93a48297 Mon Sep 17 00:00:00 2001 From: Rohin Bhargava Date: Thu, 10 Oct 2024 10:53:58 -0700 Subject: [PATCH] debug: add debug statement for fdr deploy (#1639) --- servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts b/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts index 6c82cd24d8..fe105d88f7 100644 --- a/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts +++ b/servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts @@ -248,7 +248,12 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache { private async cacheResponse({ url, value }: { url: URL; value: CachedDocsResponse }): Promise { if (this.redisDocsCache) { - await this.redisDocsCache.set({ url, value }); + try { + await this.redisDocsCache.set({ url, value }); + } catch (e) { + console.error("failed cache replaceDocsForInstanceId", new Error().stack, JSON.stringify(value).length); + throw e; + } } this.localDocsCache.set({ url, value }); }