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

Verbose parameter not working

Open TheGeeKing opened this issue 2 years ago • 2 comments

The verbose parameter verbose: Whether to output a warning the .env file is missing. doesn't raise any warning.

>>> from dotenv import dotenv_values
>>> dotenv_values()
OrderedDict()
>>> dotenv_values(verbose=True)
OrderedDict()
>>> dotenv_values("a", verbose=True)
OrderedDict()
>>> dotenv_values(".", verbose=True)
OrderedDict()
>>> dotenv_values("/", verbose=True)
OrderedDict()
>>> dotenv_values("?", verbose=True)
OrderedDict()
>>> dotenv_values("¨", verbose=True)
OrderedDict()

The verbose doesn't seem to have any effect. logger.info() was used instead of logger.warning() as it should. -> https://github.com/theskumar/python-dotenv/blob/3ffcef60d10813b72ecf85d5941d51b0207cd40e/src/dotenv/main.py#L61

TheGeeKing avatar Aug 14 '23 22:08 TheGeeKing

@theskumar any news on this? I can confirm it is an issue.

stefano-ottolenghi avatar Feb 02 '24 12:02 stefano-ottolenghi

The repo seems to have been inactive for the last 7 months, some commits were made 11d ago but none of my 2 issues/PR have been commented.

TheGeeKing avatar Feb 03 '24 13:02 TheGeeKing