7 "git.curoverse.com/arvados.git/sdk/go/config"
8 "git.curoverse.com/arvados.git/sdk/go/ctxlog"
11 var logger = ctxlog.FromContext
16 configPath := flag.String("config", "/etc/arvados/ws/ws.yml", "`path` to config file")
17 dumpConfig := flag.Bool("dump-config", false, "show current configuration and exit")
18 cfg := defaultConfig()
21 err := config.LoadFile(&cfg, *configPath)
26 ctxlog.SetLevel(cfg.LogLevel)
27 ctxlog.SetFormat(cfg.LogFormat)
30 txt, err := config.Dump(&cfg)
34 fmt.Print(string(txt))
39 srv := &server{wsConfig: &cfg}