Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 02b1eaa

Browse files
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

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /