From 7063ca51aa23585f9c8ea290a9224d60ff93658f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 15 Jul 2015 05:35:05 +0100 Subject: [PATCH] remove dead code --- common/logging.go | 10 ---------- 1 file changed, 10 deletions(-) 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 - } -}