mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-13 19:53:38 +00:00
Load config with ConfigSource.default to allow environment variables or java opts to override config values
This commit is contained in:
parent
cada786010
commit
0bb681babc
2 changed files with 24 additions and 16 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue