From 329dc71fd55374363decd302308140501450bf68 Mon Sep 17 00:00:00 2001 From: Rocky Murdoch Date: Tue, 7 Jan 2025 14:00:36 +0200 Subject: [PATCH] chore: change info to warn --- src/lib/quoteEngine.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/quoteEngine.js b/src/lib/quoteEngine.js index a859a65..0fd73c1 100644 --- a/src/lib/quoteEngine.js +++ b/src/lib/quoteEngine.js @@ -185,8 +185,8 @@ const customAllocationPriorityFixedPrice = (amountToAllocate, poolsData, customP const poolId = customPoolIdPriorityCopy.shift(); const pool = poolsData.find(poolData => poolData.poolId === poolId); if (!pool) { - console.info(`Unable to find pool ${poolId} in poolsData array. Skipping\n`); - console.info(`Available poolIds in poolsData: ${poolsData.map(p => p.poolId).join(', ')}`); + console.warn(`Unable to find pool ${poolId} in poolsData array. Skipping\n`); + console.warn(`Available poolIds in poolsData: ${poolsData.map(p => p.poolId).join(', ')}`); console.debug('poolsData: ', inspect(poolsData, { depth: null })); continue; } @@ -295,6 +295,7 @@ const quoteEngine = (store, productId, amount, period, coverAsset) => { const pool = poolsData.find(data => poolId.toString() === data.poolId.toString()); if (!pool) { + console.info(`Available poolIds in poolsData: ${poolsData.map(p => p.poolId).join(', ')}`); console.debug('poolsData: ', inspect(poolsData, { depth: null })); throw new Error(`Unable to find pool ${poolId} in poolsData`); }