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

chore: stop capturing initialize errors #474

Merged
merged 3 commits into from
May 3, 2023
Merged

Conversation

antico5
Copy link
Collaborator

@antico5 antico5 commented Apr 28, 2023

This is to address the new errors appearing on sentry related to project initialization. I just realized that our logger creates error entries when we call the .error method. I replaced existing logging related to project initialization from error calls to info, to avoid this.

@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2023

Codecov Report

Merging #474 (074946a) into development (ada125e) will decrease coverage by 0.31%.
The diff coverage is n/a.

❗ Current head 074946a differs from pull request most recent head 7ee76ea. Consider uploading reports for the commit 7ee76ea to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@               Coverage Diff               @@
##           development     #474      +/-   ##
===============================================
- Coverage        53.65%   53.35%   -0.31%     
===============================================
  Files              187      187              
  Lines             4799     4811      +12     
  Branches           790      790              
===============================================
- Hits              2575     2567       -8     
- Misses            1991     2008      +17     
- Partials           233      236       +3     

see 7 files with indirect coverage changes

Copy link
Member

@kanej kanej left a comment

Choose a reason for hiding this comment

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

LGTM!

Apply the same appraoch across truffle/ape/foundry and only log in
initialize rather than sending to sentry.
@kanej kanej merged commit e039184 into development May 3, 2023
@kanej kanej deleted the dont_capture_init_errors branch May 3, 2023 08:34
kanej pushed a commit that referenced this pull request May 3, 2023
Instead of passing Ape/Truffle/Foundry initialization errors to sentry, we log for the user only.

We don't rethrow truffle project errors, matching the pattern used in other adapters.

Resolves #473.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants