Skip to content

Commit

Permalink
chore: change info to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
rackstar committed Jan 7, 2025
1 parent 6b9bcad commit 329dc71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/quoteEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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`);
}
Expand Down

0 comments on commit 329dc71

Please sign in to comment.