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

Move mockpachd's panic handler into a package; use in real and test pachds #9907

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

Conversation

jrockway
Copy link
Member

I think the time has come to use this everywhere. While no code should ever panic in production, when it does, it's difficult to debug. (Users just see "EOF" and wonder why their request didn't work.)

The logging interceptor has been updated to upgrade panics to log.LevelError.

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 72.41379% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 58.26%. Comparing base (3599156) to head (6db04c6).

Files Patch % Lines
src/internal/middleware/recovery/recovery.go 53.33% 7 Missing ⚠️
src/internal/middleware/logging/interceptor.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9907      +/-   ##
==========================================
- Coverage   58.28%   58.26%   -0.03%     
==========================================
  Files         614      615       +1     
  Lines       75593    75611      +18     
==========================================
- Hits        44060    44051       -9     
- Misses      30980    31011      +31     
+ Partials      553      549       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jrockway jrockway requested a review from acohen4 April 2, 2024 16:21
@jrockway jrockway force-pushed the jonathan/core-2238-loki-in-testpachd branch from 37b4b6f to f02a218 Compare April 5, 2024 02:50
Base automatically changed from jonathan/core-2238-loki-in-testpachd to master April 5, 2024 03:27
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.

None yet

1 participant