-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: main
Are you sure you want to change the base?
fix: console logging #620
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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} />} |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 😄
%c
in the format stringLogStatus
for custom logging