mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
add logging for directory creation
This commit is contained in:
parent
527db52d5e
commit
47e256f03d
@ -39,7 +39,10 @@ class FrigateApp():
|
|||||||
def ensure_dirs(self):
|
def ensure_dirs(self):
|
||||||
for d in [RECORD_DIR, CLIPS_DIR, CACHE_DIR]:
|
for d in [RECORD_DIR, CLIPS_DIR, CACHE_DIR]:
|
||||||
if not os.path.exists(d) and not os.path.islink(d):
|
if not os.path.exists(d) and not os.path.islink(d):
|
||||||
|
logger.info(f"Creating directory: {d}")
|
||||||
os.makedirs(d)
|
os.makedirs(d)
|
||||||
|
else:
|
||||||
|
logger.debug(f"Skipping directory: {d}")
|
||||||
|
|
||||||
def init_logger(self):
|
def init_logger(self):
|
||||||
self.log_process = mp.Process(target=log_process, args=(self.log_queue,), name='log_process')
|
self.log_process = mp.Process(target=log_process, args=(self.log_queue,), name='log_process')
|
||||||
|
Loading…
Reference in New Issue
Block a user