fix missing config vars
This commit is contained in:
parent
eb010ae610
commit
d205622b10
6
main.py
6
main.py
|
@ -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!')
|
||||||
|
|
Loading…
Reference in New Issue