Skip to content

Commit

Permalink
disable inlining for Fields methoid
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Aug 17, 2024
1 parent cf8efec commit 12d35e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,8 @@ func (e *Entry) KeysAndValues(keysAndValues ...any) *Entry {
type Fields map[string]any

// Fields is a helper function to use a map to set fields using type assertion.
//
//go:noinline
func (e *Entry) Fields(fields Fields) *Entry {
if e == nil {
return nil
Expand Down

0 comments on commit 12d35e2

Please sign in to comment.