From cd8fc0903b96d98f5203c1c959ca8552aaeebaee Mon Sep 17 00:00:00 2001 From: bry Date: Thu, 13 Feb 2025 09:42:49 -0600 Subject: [PATCH] .warn to .log --- .../src/utils/handleAccountWebhook.ts | 2 +- .../src/utils/integrityCheckProgramAccounts.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/account-postgres-sink-service/src/utils/handleAccountWebhook.ts b/packages/account-postgres-sink-service/src/utils/handleAccountWebhook.ts index 0cb3a9a72..c674c9673 100644 --- a/packages/account-postgres-sink-service/src/utils/handleAccountWebhook.ts +++ b/packages/account-postgres-sink-service/src/utils/handleAccountWebhook.ts @@ -86,7 +86,7 @@ export const handleAccountWebhook = async ({ try { sanitized = await plugin.processAccount(sanitized, t); } catch (err) { - console.warn( + console.log( `Plugin processing failed for account ${account.pubkey}`, err ); diff --git a/packages/account-postgres-sink-service/src/utils/integrityCheckProgramAccounts.ts b/packages/account-postgres-sink-service/src/utils/integrityCheckProgramAccounts.ts index b56145d7a..d7698c8e4 100644 --- a/packages/account-postgres-sink-service/src/utils/integrityCheckProgramAccounts.ts +++ b/packages/account-postgres-sink-service/src/utils/integrityCheckProgramAccounts.ts @@ -91,7 +91,7 @@ export const integrityCheckProgramAccounts = async ({ if (!blockTime24HoursAgo) { attemptSlot += SLOTS_INCREMENT; // move forward 2 slots each attempt - console.warn( + console.log( `Failed to get blocktime for slot ${ attemptSlot - SLOTS_INCREMENT }, trying slot ${attemptSlot}` @@ -231,7 +231,7 @@ export const integrityCheckProgramAccounts = async ({ try { sanitized = await plugin.processAccount(sanitized, t); } catch (err) { - console.warn( + console.log( `Plugin processing failed for account ${c.pubkey}`, err ); @@ -299,7 +299,7 @@ export const integrityCheckProgramAccounts = async ({ await retry(performIntegrityCheck, { ...retryOptions, onRetry: (error, attempt) => { - console.warn( + console.log( `Integrity check ${programId} attempt ${attempt}: Retrying due to ${error.message}` ); },