新增hls root path参数
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
|
||||
|
||||
import yaml
|
||||
from utils.logger import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
ALERT_PUSH_URL = ""
|
||||
HLS_ROOT_PATH = ""
|
||||
|
||||
|
||||
def init_config(config_path: str = "config.yaml"):
|
||||
@@ -20,6 +22,7 @@ def init_config(config_path: str = "config.yaml"):
|
||||
cfg = yaml.safe_load(f)
|
||||
|
||||
ALERT_PUSH_URL = cfg.get("alert_push_url", "")
|
||||
HLS_ROOT_PATH = cfg.get("hls_root_path", "")
|
||||
logger.info(f"[INFO] Config initialized from {config_path}, alert_push_url={ALERT_PUSH_URL}")
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user