fix missing config vars

This commit is contained in:
Cyberes 2024-04-04 00:28:51 -06:00
parent eb010ae610
commit d205622b10
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ async def main(args):
logger.critical(f'Failed to load config: {exc}') logger.critical(f'Failed to load config: {exc}')
quit(1) quit(1)
config = DEFAULT_CONFIG | yaml_config # Really lazy way to do this
config = yaml_config
config['r2'] = DEFAULT_CONFIG['r2'] | yaml_config.get('r2', {})
print(config["r2"]["retention_hrs"])
logger.setLevel(logging.DEBUG if args.debug else logging.INFO) logger.setLevel(logging.DEBUG if args.debug else logging.INFO)
logger.debug('Debug logging enabled!') logger.debug('Debug logging enabled!')