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

Fixes a panic when Trace level log fired #15

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

ezr-ondrej
Copy link
Contributor

@ezr-ondrej ezr-ondrej commented Jan 10, 2024

This was a minor issue introduced in 3f53baa when Write is called with Trace level as Trace is not in the mapping.
Prior it would never get to trying to map trace as it was assumably never enabled.
The issue is minor, because Trace should not be enabled in most prod deployments, but still bit nasty :)

This assumes, that we do not want Trace to be added as Breadcrumb even if breadcrumbs are enabled, if that's incorrect assumption, we should add Trace to level mappings (probably mapped to Debug?)

This was a minor issue introduced in 3f53baa 
The issue is minor, because Trace should not be enabled in most prod deployments, but still bit nasty :)
@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (a41ff05) 52.31% compared to head (d425460) 52.75%.

Files Patch % Lines
writer.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   52.31%   52.75%   +0.43%     
==========================================
  Files           1        1              
  Lines         216      218       +2     
==========================================
+ Hits          113      115       +2     
  Misses         96       96              
  Partials        7        7              

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

@archdx
Copy link
Owner

archdx commented Jan 11, 2024

Ok, thanks, lets fix the panic first
I guess we can think later about breadcrumbs and watch for now will there be such feature request or not

@archdx archdx merged commit 262337b into archdx:master Jan 11, 2024
4 of 5 checks passed
@ezr-ondrej ezr-ondrej deleted the trace_level_panic branch January 11, 2024 15:09
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.

3 participants