From 315ebfb0c80c7853b9fcb21bb7e87ae3f98f06dc Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Fri, 11 Oct 2024 17:01:56 -0300 Subject: [PATCH] fix: scenes forward --- src/adapters/deployer/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/adapters/deployer/index.ts b/src/adapters/deployer/index.ts index 61d1eb9..14e048e 100644 --- a/src/adapters/deployer/index.ts +++ b/src/adapters/deployer/index.ts @@ -34,6 +34,13 @@ export function createDeployerComponent( contentServerUrls: servers } + logger.info('Forwarding entity', { + entityId: entity.entityId, + entityType: entity.entityType, + normalSns: isSnsEntityToSend, + newSns: isSnsEventToSend + }) + if (isSnsEntityToSend) { await components.downloadQueue.onSizeLessThan(1000) @@ -86,6 +93,13 @@ export function createDeployerComponent( await markAsDeployed() } catch (error: any) { const isNotRetryable = /status: 4\d{2}/.test(error.message) + logger.error('Failed to publish entity', { + entityId: entity.entityId, + entityType: entity.entityType, + error: error?.message, + stack: error?.stack + }) + if (isNotRetryable) { logger.error('Failed to download entity', { entityId: entity.entityId,