remove dead code
This commit is contained in:
1 parent
97498d26f7
commit
7063ca51aa
1 file changed
-10
@@ -56,13 +56,3 @@ func SetLogLevel(levelname string) {
|
|||||||
}
|
}
|
||||||
Log.Level = level
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user