Skip to content

Commit

Permalink
Rework logfs
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Sep 2, 2024
1 parent f98acf9 commit 96e6cef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/mapping/contract-deployer-initializable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function handleContractDeployedInitializableInitialized(event: Initialize
return
}

log.error("Creating BeefyERC20Product template for {} from contract-deployer initialize event", [tokenAddress.toHexString()])
log.debug("Creating BeefyERC20Product template for {} from contract-deployer initialize event", [tokenAddress.toHexString()])
fetchAndSaveTokenData(tokenAddress)
BeefyERC20ProductTemplate.create(tokenAddress)
}
4 changes: 2 additions & 2 deletions src/common/mapping/contract-deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export function handleContractDeployedWithDeployer(event: ContractDeployedEvent)
const tokenName = tokenNameRes.value
const tokenSymbol = tokenSymbolRes.value
if (tokenDecimals == 0 || tokenName == "" || tokenSymbol == "") {
log.error("Contract {} is probably innitializable, one of the metadata calls returned null", [address.toHexString()])
log.info("Contract {} is probably innitializable, one of the metadata calls returned null", [address.toHexString()])
ContractDeployerInitializableTemplate.create(address)
} else {
log.error("Creating BeefyERC20Product template for {} from contract-deployer", [address.toHexString()])
log.debug("Creating BeefyERC20Product template for {} from contract-deployer", [address.toHexString()])
fetchAndSaveTokenData(address)
BeefyERC20ProductTemplate.create(address)
}
Expand Down

0 comments on commit 96e6cef

Please sign in to comment.