We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93f5ac1 commit 02b1eaaCopy full SHA for 02b1eaa
src/fastapi_cli/discover.py
@@ -49,14 +49,14 @@ class ModuleData:
49
50
@contextmanager
51
def sys_path(self) -> Iterator[str]:
52
- """Context manaxger to temporarily alter sys.path"""
+ """Context manager to temporarily alter sys.path"""
53
extra_sys_path = str(self.extra_sys_path) if self.extra_sys_path else ""
54
if extra_sys_path:
55
- logger.warning("Adding %s to sys.path...", extra_sys_path)
+ logger.debug("Adding %s to sys.path...", extra_sys_path)
56
sys.path.insert(0, extra_sys_path)
57
yield extra_sys_path
58
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)
+ logger.debug("Removing %s from sys.path...", extra_sys_path)
60
sys.path.pop(0)
61
62
0 commit comments