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

Update logger.ts #1044

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update logger.ts #1044

wants to merge 2 commits into from

Conversation

betrayalove
Copy link

Moved unnecessary repetitive logging to else block

There is no need to re-log with the same error, either remove it or move it like this.

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Oct 7, 2024

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Copy link

vercel bot commented Oct 7, 2024

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

Name Status Preview Comments Updated (UTC)
base-web ❌ Failed (Inspect) Oct 7, 2024 7:34pm
web-base-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 7, 2024 7:34pm

Copy link

vercel bot commented Oct 7, 2024

@betrayalove is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

Context Initialization: Replaced useAnalytics call inside AnalyticsProvider with direct use of useContext to avoid potential context initialization issues when the provider is at the top level.
Performance Improvement: Changed toLocaleLowerCase() to toLowerCase() in the logEventWithContext function to avoid unnecessary localization overhead, improving performance.
Code Readability: Replaced !!c with Boolean(c) in the context concatenation logic to improve code readability.
@JFrankfurt JFrankfurt enabled auto-merge (squash) October 7, 2024 19:29
@JFrankfurt
Copy link
Contributor

tyvm @betrayalove

appreciate you

@wbnns wbnns added the state: backlog This is pending further review label Nov 2, 2024
@wbnns
Copy link
Member

wbnns commented Nov 2, 2024

@betrayalove

Hi there! Node.js CI is currently failing on this PR. Could you please resolve?

@wbnns wbnns added change(s) requested One or more changes have been requested state: in progress This is being worked on community contribution This is a contribution from the community and removed state: backlog This is pending further review labels Nov 2, 2024
@wbnns wbnns self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change(s) requested One or more changes have been requested community contribution This is a contribution from the community state: in progress This is being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants