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

fix: unaligned 64-bit atomic operation #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions v2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ func WithNoTimestamp() HandlerOption {
// DefaultHandler is a Handler that can be used along with NewSLogger to
// instantiate a structured logger.
type DefaultHandler struct {
opts *handlerOpts

level int64
tag string
prefix string
fields []slog.Attr
callstackOffset bool

flag uint32

opts *handlerOpts
buf *buffer
mu *sync.Mutex
w io.Writer

flag uint32
callstackOffset bool
}

// A compile-time check to ensure that DefaultHandler implements Handler.
Expand Down