mirror of https://github.com/docker/cli.git
Modify function name from SetDaemonLogLevel to SetLogLevel
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
871b692833
commit
f4267969c7
|
@ -101,9 +101,8 @@ func (commonOpts *CommonOptions) SetDefaultOptions(flags *pflag.FlagSet) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetDaemonLogLevel sets the logrus logging level
|
// SetLogLevel sets the logrus logging level
|
||||||
// TODO: this is a bad name, it applies to the client as well.
|
func SetLogLevel(logLevel string) {
|
||||||
func SetDaemonLogLevel(logLevel string) {
|
|
||||||
if logLevel != "" {
|
if logLevel != "" {
|
||||||
lvl, err := logrus.ParseLevel(logLevel)
|
lvl, err := logrus.ParseLevel(logLevel)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue