Skip to content

Handle errors printing like slog json marshaller#60

Merged
ldemailly merged 3 commits intomainfrom
errors_log
Apr 3, 2024
Merged

Handle errors printing like slog json marshaller#60
ldemailly merged 3 commits intomainfrom
errors_log

Conversation

@ldemailly
Copy link
Copy Markdown
Member

@ldemailly ldemailly commented Apr 3, 2024

use .Error() unless explicit marshaller is found - this will avoid missing the message for a net.OpError read for instance

Noticed in fortio/fortio#913

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (92bd010) to head (b24d820).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          539       550   +11     
=========================================
+ Hits           539       550   +11     

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

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.

1 participant