From: Tom Clegg Date: Thu, 23 May 2019 13:31:40 +0000 (-0400) Subject: 15003: Temporarily disable config warnings. X-Git-Tag: 1.4.0~11^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/311d552b31fbb97d10cdba7e248279d197751f79 15003: Temporarily disable config warnings. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/lib/service/cmd.go b/lib/service/cmd.go index 4b7341d729..955b21f9ea 100644 --- a/lib/service/cmd.go +++ b/lib/service/cmd.go @@ -10,6 +10,7 @@ import ( "flag" "fmt" "io" + "io/ioutil" "net/http" "net/url" "os" @@ -70,7 +71,10 @@ func (c *command) RunCommand(prog string, args []string, stdin io.Reader, stdout } else if err != nil { return 2 } - cfg, err := config.LoadFile(*configFile, log) + // Logged warnings are discarded for now: the config template + // is incomplete, which causes extra warnings about keys that + // are really OK. + cfg, err := config.LoadFile(*configFile, ctxlog.New(ioutil.Discard, "json", "error")) if err != nil { return 1 }