15003: Temporarily disable config warnings.
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 23 May 2019 13:31:40 +0000 (09:31 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 23 May 2019 13:31:40 +0000 (09:31 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

lib/service/cmd.go

index 4b7341d7294d44a94f6422534dfc8780eab0c7db..955b21f9ea0ef1ac21bc069f67079a767aabac1e 100644 (file)
@@ -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
        }