1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
11 "git.curoverse.com/arvados.git/sdk/go/config"
12 "git.curoverse.com/arvados.git/sdk/go/ctxlog"
15 var logger = ctxlog.FromContext
20 configPath := flag.String("config", "/etc/arvados/ws/ws.yml", "`path` to config file")
21 dumpConfig := flag.Bool("dump-config", false, "show current configuration and exit")
22 cfg := defaultConfig()
25 err := config.LoadFile(&cfg, *configPath)
30 ctxlog.SetLevel(cfg.LogLevel)
31 ctxlog.SetFormat(cfg.LogFormat)
34 txt, err := config.Dump(&cfg)
38 fmt.Print(string(txt))
43 srv := &server{wsConfig: &cfg}