Skip to content

Commit d29d82e

Browse files
authored
Fix comparison and really emit trace logs (treeverse#1283)
1 parent 3fd38d3 commit d29d82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

logging/logger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ func (l *logrusEntryWrapper) Panicf(format string, args ...interface{}) {
135135
l.e.Panicf(format, args...)
136136
}
137137

138-
func (l *logrusEntryWrapper) IsTracing() bool {
139-
return l.e.Level < logrus.TraceLevel
138+
func (*logrusEntryWrapper) IsTracing() bool {
139+
return logrus.IsLevelEnabled(logrus.TraceLevel)
140140
}
141141

142142
type logrusCallerFormatter struct {

0 commit comments

Comments
 (0)