Skip to content

Commit 593813e

Browse files
committed
Fix verbose .env file missing
Changed: - `logger.info()` -> `logger.warning()` to output a warning as it should if the .env file is missing.
1 parent 3ffcef6 commit 593813e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotenv/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _get_stream(self) -> Iterator[IO[str]]:
5858
yield self.stream
5959
else:
6060
if self.verbose:
61-
logger.info(
61+
logger.warning(
6262
"Python-dotenv could not find configuration file %s.",
6363
self.dotenv_path or '.env',
6464
)

0 commit comments

Comments
 (0)