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

Update slog code to work with Go 1.21 #74

Closed
wants to merge 2 commits into from

Conversation

jamietanna
Copy link

No description provided.

aymanbagabas and others added 2 commits May 11, 2023 14:34
This implements slog.Handler interface. You can use Log as an slog
handler.
@jamietanna jamietanna mentioned this pull request Sep 12, 2023
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.12% ⚠️

Comparison is base (2321bbd) 74.70% compared to head (bfd7186) 74.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             slog      #74      +/-   ##
==========================================
- Coverage   74.70%   74.59%   -0.12%     
==========================================
  Files          10       10              
  Lines         672      673       +1     
==========================================
  Hits          502      502              
- Misses        154      155       +1     
  Partials       16       16              
Files Changed Coverage Δ
level.go 92.85% <ø> (ø)
logger.go 75.43% <0.00%> (-0.33%) ⬇️

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

@@ -3,7 +3,7 @@ package log
import (
"strings"

Copy link
Author

Choose a reason for hiding this comment

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

if we remove this line, then goimports will shuffle this around better

@@ -13,9 +13,10 @@ import (
"sync/atomic"
"time"

Copy link
Author

Choose a reason for hiding this comment

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

as above, we should drop the newline here, so goimports merges it in better

@aymanbagabas
Copy link
Member

Thank you @jamietanna. This is now superseded by #13

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