first examples of config parsing

This commit is contained in:
A.Unger committed 2021-10-29 16:15:35 +02:00
1 parent 34253fcae2
commit 94aeefb7fd
6 files changed
+89 -70

No files matched your search

+5 -2
View File
@@ -55,9 +55,12 @@ func Server(cfg *config.Config) *cli.Command {
return err
}
if !cfg.Supervised {
return ParseConfig(ctx, cfg)
if err := ParseConfig(ctx, cfg); err != nil {
panic(err)
}
//if !cfg.Supervised {
// return ParseConfig(ctx, cfg)
//}
logger.Debug().Str("service", "ocs").Msg("ignoring config file parsing when running supervised")
return nil
},