diff --git a/common/logging.go b/common/logging.go index 2cf9cff5..d6e86c79 100644 --- a/common/logging.go +++ b/common/logging.go @@ -56,13 +56,3 @@ func SetLogLevel(levelname string) { } Log.Level = level } - -// For backwards-compatibility with code that only has a boolean -func EnableDebugLogging(flag bool) { - switch { - case flag && Log.Level < logrus.DebugLevel: - Log.Level = logrus.DebugLevel - case !flag && Log.Level >= logrus.DebugLevel: - Log.Level = logrus.InfoLevel - } -}