From 45d5602d9c6c92c2b224dda757df1d20f83986d8 Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Thu, 25 Sep 2014 03:10:06 +0000 Subject: [PATCH] logrus: remove dbg alias for ParseLevel \cc @mohae --- logrus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logrus.go b/logrus.go index 35c6d19..43ee12e 100644 --- a/logrus.go +++ b/logrus.go @@ -31,6 +31,7 @@ func (level Level) String() string { return "unknown" } +// ParseLevel takes a string level and returns the Logrus log level constant. func ParseLevel(lvl string) (Level, error) { switch lvl { case "panic": @@ -43,13 +44,12 @@ func ParseLevel(lvl string) (Level, error) { return WarnLevel, nil case "info": return InfoLevel, nil - case "debug", "dbg": + case "debug": return DebugLevel, nil } var l Level return l, fmt.Errorf("not a valid logrus Level: %q", lvl) - } // These are the different logging levels. You can set the logging level to log