python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

Fix verbose .env file missing

Open TheGeeKing opened this issue 2 years ago • 1 comments

Changed:

  • logger.info() -> logger.warning() to output a warning as it should if the .env file is missing.

Fix #477

TheGeeKing avatar Aug 14 '23 22:08 TheGeeKing

Had to debug a program to have the same conclusion. Default level is warning, info will not be shown. As it's seems to take time to incorporate the change I recommend defaulting the logging levlel to INFO

import logging
logging.basicConfig(level=logging.INFO)

Matoran avatar May 13 '24 12:05 Matoran