Load config with ConfigSource.default to allow environment variables or java opts to override config values

This commit is contained in:
Mazo 2021-06-13 15:36:02 +01:00
parent cada786010
commit 0bb681babc
2 changed files with 24 additions and 16 deletions

View file

@ -183,16 +183,6 @@ object Server {
loggerContext.reset()
configurator.doConfigure(loggerConfigPath)
Config.result match {
case Left(failures) =>
logger.error("Loading config failed")
failures.toList.foreach { failure =>
logger.error(failure.toString)
}
sys.exit(1)
case Right(_) =>
}
val builder = OParser.builder[CliConfig]
val parser = {