Skip to content

Commit

Permalink
Replace console warn with logger warn
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoguerios committed Jul 7, 2023
1 parent da7b75d commit ad5ce47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion balancer-js/src/modules/sor/pool-data/onChainData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export async function getOnChainPools<GenericPool extends BalancerPool>(
const supportedPoolTypes: string[] = Object.values(PoolType);
const filteredPools = subgraphPoolsOriginal.filter((p) => {
if (!supportedPoolTypes.includes(p.poolType) || p.poolType === 'Managed') {
console.warn(`Unknown pool type: ${p.poolType} ${p.id}`);
const logger = Logger.getInstance();
logger.warn(`Unknown pool type: ${p.poolType} ${p.id}`);
return false;
} else return true;
});
Expand Down

0 comments on commit ad5ce47

Please sign in to comment.