Skip to content

Commit

Permalink
debug: add debug statement for fdr deploy (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava authored Oct 10, 2024
1 parent 8536bfe commit 040ccce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion servers/fdr/src/services/docs-cache/DocsDefinitionCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ export class DocsDefinitionCacheImpl implements DocsDefinitionCache {

private async cacheResponse({ url, value }: { url: URL; value: CachedDocsResponse }): Promise<void> {
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 });
}
Expand Down

0 comments on commit 040ccce

Please sign in to comment.