Ensure logging configuration is initialized when log level is provided

This commit is contained in:
Lloyd
2025-12-14 22:35:57 +00:00
parent 2309e3afdb
commit bbfbdcce2f

View File

@@ -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