From 47e256f03d898005f05507e8ea6f329c5ba3b216 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Thu, 3 Dec 2020 08:01:22 -0600 Subject: [PATCH] add logging for directory creation --- frigate/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/app.py b/frigate/app.py index 32083b2bc..9507ca3d0 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -39,7 +39,10 @@ class FrigateApp(): def ensure_dirs(self): for d in [RECORD_DIR, CLIPS_DIR, CACHE_DIR]: if not os.path.exists(d) and not os.path.islink(d): + logger.info(f"Creating directory: {d}") os.makedirs(d) + else: + logger.debug(f"Skipping directory: {d}") def init_logger(self): self.log_process = mp.Process(target=log_process, args=(self.log_queue,), name='log_process')