From 593813e0a18af86699ecdd6ec207b7548ed7cc93 Mon Sep 17 00:00:00 2001 From: MMA <58857539+TheGeeKing@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:33:53 +0200 Subject: [PATCH] Fix verbose .env file missing Changed: - `logger.info()` -> `logger.warning()` to output a warning as it should if the .env file is missing. --- src/dotenv/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotenv/main.py b/src/dotenv/main.py index 383b79f4..cca82297 100644 --- a/src/dotenv/main.py +++ b/src/dotenv/main.py @@ -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', )