Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: console logging #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: console logging #620

wants to merge 1 commit into from

Conversation

DanielSchiavini
Copy link
Contributor

  • fixed missing %c in the format string
  • escape %c in the data
  • removed logs that were too long
  • remove unused code
  • export LogStatus for custom logging

Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 10:20am
curve-dapp-crvusd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 10:20am
curve-dapp-dao ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 10:20am
curve-dapp-lend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 10:20am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 10:20am

@@ -51,7 +51,7 @@ export const ChainSwitcher = <TChainId extends number>({
return (
<>
<IconButton size="small" disabled={disabled} onClick={onClick} data-testid="btn-change-chain">
<ChainSwitcherIcon chain={selectedNetwork} />
{selectedNetwork && <ChainSwitcherIcon chain={selectedNetwork} />}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uuuh ok

@@ -65,7 +65,7 @@ export function parseRouterRoutes(
try {
pool = getPool(route.poolId)
} catch (error) {
log('routerBestRouteAndOutput missing poolName', route)
log('routerBestRouteAndOutput missing poolName', LogStatus.ERROR, route.poolId)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not important but I'd be in favor of removing specific function variants like logSuccess for the more generic variant with logstatus parameter like `log("foo", LogStatus.SUCCESS)

Or instead of this variant use logError. Either way pick a side 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants