From f4267969c796bcacea13b0a293eed89423e1c58c Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Tue, 11 Oct 2016 19:35:12 +0800 Subject: [PATCH] Modify function name from SetDaemonLogLevel to SetLogLevel Signed-off-by: yuexiao-wang --- flags/common.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flags/common.go b/flags/common.go index 2318b9d975..074d53e315 100644 --- a/flags/common.go +++ b/flags/common.go @@ -101,9 +101,8 @@ func (commonOpts *CommonOptions) SetDefaultOptions(flags *pflag.FlagSet) { } } -// SetDaemonLogLevel sets the logrus logging level -// TODO: this is a bad name, it applies to the client as well. -func SetDaemonLogLevel(logLevel string) { +// SetLogLevel sets the logrus logging level +func SetLogLevel(logLevel string) { if logLevel != "" { lvl, err := logrus.ParseLevel(logLevel) if err != nil {