Skip to content

Commit

Permalink
lint fix: unexport debugLevelField
Browse files Browse the repository at this point in the history
  • Loading branch information
ChannyClaus committed Apr 18, 2023
1 parent 92a24d3 commit 3ab0145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions field.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ var (
_minTimeInt64 = time.Unix(0, math.MinInt64)
_maxTimeInt64 = time.Unix(0, math.MaxInt64)

DebugLevelField = zapcore.DebugLevel
debugLevelField = zapcore.DebugLevel
)

// DebugField wraps a field so that DebugLevel log displays it.
// See https://github.com/uber-go/zap/issues/1078 for motivation.
func DebugField(f Field) Field {
f.Level = &DebugLevelField
f.Level = &debugLevelField
return f
}

Expand Down

0 comments on commit 3ab0145

Please sign in to comment.