Set uuid.Loggerf to nop on client and to logrus.Warnf on daemon
Signed-off-by: Tibor Vass <tibor@docker.com> Upstream-commit: 7841d6ab9a58aff1d607eea7303c665c159ceaec Component: engine
This commit is contained in:
@ -10,6 +10,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/distribution/uuid"
|
||||
"github.com/docker/docker/cli"
|
||||
"github.com/docker/docker/cliconfig"
|
||||
"github.com/docker/docker/opts"
|
||||
@ -98,6 +99,10 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, clientFlags *cli.ClientF
|
||||
}
|
||||
|
||||
cli.init = func() error {
|
||||
|
||||
// ignore errors from uuid package when running client commands
|
||||
uuid.Loggerf = func(string, ...interface{}) {}
|
||||
|
||||
clientFlags.PostParse()
|
||||
|
||||
hosts := clientFlags.Common.Hosts
|
||||
|
||||
Reference in New Issue
Block a user