From 9a373d0ec92cc5f161f6e8b8edd5a0015fdc5bc2 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Thu, 30 Mar 2023 16:57:28 +0100 Subject: [PATCH] Portal relayer log fix (#2043) ### Description #1970 had a small bug ### Drive-by changes _Are there any minor or drive-by changes also included?_ ### Related issues - Fixes #[issue number here] ### Backward compatibility _Are these changes backward compatible?_ Yes No _Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling?_ None Yes ### Testing _What kind of testing have these changes undergone?_ None Manual Unit Tests --------- Co-authored-by: nambrot Co-authored-by: J M Rossy --- typescript/infra/scripts/middleware/portal-relayer.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/typescript/infra/scripts/middleware/portal-relayer.ts b/typescript/infra/scripts/middleware/portal-relayer.ts index e4aa65416..6c57192f0 100644 --- a/typescript/infra/scripts/middleware/portal-relayer.ts +++ b/typescript/infra/scripts/middleware/portal-relayer.ts @@ -40,7 +40,9 @@ async function relayPortalTransfers() { while (true) { for (const chain of Object.keys(bridgeAdapterConfigs)) { - log('Processing chain', chain); + log('Processing chain', { + chain, + }); const txHashes = await app.fetchPortalBridgeTransactions(chain); const portalMessages = ( @@ -49,7 +51,9 @@ async function relayPortalTransfers() { ) ).flat(); - log('Portal messages', portalMessages); + log('Portal messages', { + portalMessages, + }); // Poll for attestation data and submit for (const message of portalMessages) {