Merge pull request #865 from Mazo/env-config

Load config with ConfigSource.default to allow environment variables or java opts to override config values
This commit is contained in:
Fate-JH 2021-06-15 18:58:38 -04:00 committed by GitHub
commit 7b840719be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 17 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 = {