Skip to content

Commit 02b1eaa

Browse files
committed
cleanup logging
1 parent 93f5ac1 commit 02b1eaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fastapi_cli/discover.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ class ModuleData:
4949

5050
@contextmanager
5151
def sys_path(self) -> Iterator[str]:
52-
"""Context manaxger to temporarily alter sys.path"""
52+
"""Context manager to temporarily alter sys.path"""
5353
extra_sys_path = str(self.extra_sys_path) if self.extra_sys_path else ""
5454
if extra_sys_path:
55-
logger.warning("Adding %s to sys.path...", extra_sys_path)
55+
logger.debug("Adding %s to sys.path...", extra_sys_path)
5656
sys.path.insert(0, extra_sys_path)
5757
yield extra_sys_path
5858
if extra_sys_path and sys.path and sys.path[0] == extra_sys_path:
59-
logger.warning("Removing %s from sys.path...", extra_sys_path)
59+
logger.debug("Removing %s from sys.path...", extra_sys_path)
6060
sys.path.pop(0)
6161

6262

0 commit comments

Comments
 (0)