mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
Ensure logging configuration is initialized when log level is provided
This commit is contained in:
@@ -293,8 +293,11 @@ def main():
|
||||
config_path = args.config if args.config else '/etc/pymc_repeater/config.yaml'
|
||||
|
||||
if args.log_level:
|
||||
if "logging" not in config:
|
||||
config["logging"] = {}
|
||||
config["logging"]["level"] = args.log_level
|
||||
|
||||
|
||||
# Don't initialize radio here - it will be done inside the async event loop
|
||||
daemon = RepeaterDaemon(config, radio=None)
|
||||
daemon.config_path = config_path
|
||||
|
||||
Reference in New Issue
Block a user