mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Add log for default config
This commit is contained in:
parent
2802a484a2
commit
3f6cbee831
@ -279,7 +279,7 @@ def find_by_key(dictionary, target_key):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def save_default_config(location: str):
|
def save_default_config(location: str) -> None:
|
||||||
try:
|
try:
|
||||||
with open(location, "w") as f:
|
with open(location, "w") as f:
|
||||||
f.write(
|
f.write(
|
||||||
@ -303,6 +303,9 @@ cameras:
|
|||||||
)
|
)
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
logger.error("Unable to write default config to /config")
|
logger.error("Unable to write default config to /config")
|
||||||
|
return
|
||||||
|
|
||||||
|
logger.info("Created default config file, see the getting started docs for configuration https://docs.frigate.video/guides/getting_started")
|
||||||
|
|
||||||
|
|
||||||
def get_tomorrow_at_time(hour: int) -> datetime.datetime:
|
def get_tomorrow_at_time(hour: int) -> datetime.datetime:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user