mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Fix prepare-log and when go2rtc is not present in config
This commit is contained in:
parent
2d4ddd9434
commit
473c8d30c8
@ -1 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-logs/run
|
||||
/etc/s6-overlay/s6-rc.d/log-prepare/run
|
||||
|
||||
@ -20,7 +20,7 @@ if config_file.endswith((".yaml", ".yml")):
|
||||
elif config_file.endswith(".json"):
|
||||
config = json.loads(raw_config)
|
||||
|
||||
go2rtc_config: dict[str, any] = config["go2rtc"]
|
||||
go2rtc_config: dict[str, any] = config.get("go2rtc", {})
|
||||
|
||||
if not go2rtc_config.get("log", {}).get("format"):
|
||||
go2rtc_config["log"] = {"format": "text"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user