fix golint issues in core/logx (#496)
This commit is contained in:
@@ -12,6 +12,7 @@ const durationCallerDepth = 3
|
||||
|
||||
type durationLogger logEntry
|
||||
|
||||
// WithDuration returns a Logger which logs the given duration.
|
||||
func WithDuration(d time.Duration) Logger {
|
||||
return &durationLogger{
|
||||
Duration: timex.ReprOfDuration(d),
|
||||
|
||||
Reference in New Issue
Block a user