Skip to content

Commit

Permalink
Fix verbose .env file missing
Browse files Browse the repository at this point in the history
Changed:
- `logger.info()` -> `logger.warning()` to output a warning as it should if the .env file is missing.
  • Loading branch information
TheGeeKing committed Aug 14, 2023
1 parent 3ffcef6 commit 593813e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_stream(self) -> Iterator[IO[str]]:
yield self.stream
else:
if self.verbose:
logger.info(
logger.warning(
"Python-dotenv could not find configuration file %s.",
self.dotenv_path or '.env',
)
Expand Down

0 comments on commit 593813e

Please sign in to comment.