From 207f8fe916772420c20f72c3e961673941b229ac Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Mon, 14 Aug 2023 05:04:39 +0300 Subject: [PATCH] switched logging to DEBUG instead of info. --- app/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 0a5d371..8d526a8 100644 --- a/app/main.py +++ b/app/main.py @@ -39,6 +39,8 @@ class Config: def __init__(self): for k, v in self._DEFAULTS.items(): + if k in os.environ: + log.debug(f"ENV override for {k} = {os.environ[k]}") setattr(self, k, os.environ[k] if k in os.environ else v) for k, v in self.__dict__.items(): @@ -64,7 +66,7 @@ class Config: assert isinstance(self.YTDL_OPTIONS, dict) if len(self.YTDL_OPTIONS) != 0: - log.info(f"Using custom yt-dlp options:\n{json.dumps(self.YTDL_OPTIONS, indent=2, ensure_ascii=False)}") + log.debug(f"Using custom yt-dlp options:\n{json.dumps(self.YTDL_OPTIONS, indent=2, ensure_ascii=False)}") except (json.decoder.JSONDecodeError, AssertionError) as e: log.error(f"Unable to parse YTDL_OPTIONS value. {str(e)}") sys.exit(1)