1 package apiext 2 3 // This is a separate file from anything else so that people don't see 4 // logrus being imported and think that it's OK to use logrus instead 5 // of dlog. We're just coopting logrus.ParseLevel and the 6 // logrus.Level type, and not using any of the actual logging 7 // functionality. Use dlog! 8 9 import ( 10 //nolint:depguard // So we can turn off buffering if we're not debug logging 11 "github.com/sirupsen/logrus" 12 13 "github.com/emissary-ingress/emissary/v3/pkg/busy" 14 ) 15 16 func LogLevelIsAtLeastDebug() bool { 17 return busy.GetLogLevel() >= logrus.DebugLevel 18 } 19