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: Logging fixes #185

Merged
merged 4 commits into from
Aug 21, 2024
Merged

fix: Logging fixes #185

merged 4 commits into from
Aug 21, 2024

Conversation

joe-yeager
Copy link
Contributor

@joe-yeager joe-yeager commented Aug 20, 2024

Description and Context

Fixes the error where we weren't logging out the required scopes.
Fixes errors with the payloads getting logged

Screenshots

Before

Screenshot 2024-08-20 at 2 35 45 PM

After

Screenshot 2024-08-20 at 2 33 24 PM

TODO

Who to Notify

@kemmerle @brandenrodgers @camden11

@joe-yeager joe-yeager changed the title fix: Add requiredScopes to validation errors fix: Logging fixes Aug 20, 2024
@@ -116,7 +121,7 @@ export class HubSpotHttpError<T = any> extends Error {
generatedContext.request = cause.config?.url;

// Allow the provided context to override the generated context
this.context = { ...generatedContext, ...this.context };
this.derivedContext = { ...this.derivedContext, ...generatedContext };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Splitting this into derivedContext to prevent collisions with the user provided context and it doesn't unintentionally slip unwanted details into the message.

@joe-yeager joe-yeager merged commit 023f500 into next Aug 21, 2024
@joe-yeager joe-yeager deleted the jy/fix-next-errors branch August 28, 2024 21:57
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.

2 participants