muffin 0.98.0__tar.gz → 0.98.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {muffin-0.98.0 → muffin-0.98.1}/PKG-INFO +1 -1
- {muffin-0.98.0 → muffin-0.98.1}/muffin/app.py +2 -2
- {muffin-0.98.0 → muffin-0.98.1}/muffin/utils.py +5 -0
- {muffin-0.98.0 → muffin-0.98.1}/pyproject.toml +1 -1
- {muffin-0.98.0 → muffin-0.98.1}/README.rst +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/__init__.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/constants.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/errors.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/handler.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/manage.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/plugins.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/py.typed +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/pytest.py +0 -0
- {muffin-0.98.0 → muffin-0.98.1}/muffin/types.py +0 -0
@@ -12,7 +12,7 @@ from asgi_tools._compat import aio_wait
|
|
12
12
|
from modconfig import Config
|
13
13
|
|
14
14
|
from muffin.constants import CONFIG_ENV_VARIABLE
|
15
|
-
from muffin.utils import import_submodules
|
15
|
+
from muffin.utils import import_submodules, logger
|
16
16
|
|
17
17
|
if TYPE_CHECKING:
|
18
18
|
from collections.abc import Awaitable
|
@@ -75,7 +75,7 @@ class Application(BaseApp):
|
|
75
75
|
self.manage = Manager(self)
|
76
76
|
|
77
77
|
# Setup logging
|
78
|
-
self.logger =
|
78
|
+
self.logger = logger
|
79
79
|
self.logger.setLevel(self.cfg.LOG_LEVEL)
|
80
80
|
self.logger.propagate = False
|
81
81
|
if not self.logger.handlers:
|
@@ -13,6 +13,7 @@ from contextlib import suppress
|
|
13
13
|
from typing import TYPE_CHECKING, Callable, Coroutine, Dict, TypeVar
|
14
14
|
|
15
15
|
from asgi_tools.utils import is_awaitable, to_awaitable
|
16
|
+
from curio.task import logging
|
16
17
|
from sniffio import current_async_library
|
17
18
|
|
18
19
|
from muffin.errors import InvalidAppError
|
@@ -49,6 +50,8 @@ AIOLIBS["asyncio"] = asyncio
|
|
49
50
|
|
50
51
|
TV = TypeVar("TV")
|
51
52
|
|
53
|
+
logger = logging.getLogger("muffin")
|
54
|
+
|
52
55
|
|
53
56
|
def aio_lib() -> str:
|
54
57
|
"""Return first available async library."""
|
@@ -87,6 +90,8 @@ def import_submodules(
|
|
87
90
|
if not silent:
|
88
91
|
raise
|
89
92
|
|
93
|
+
logger.debug("Failed to import module: %s", f"{package_name}.{module_name}")
|
94
|
+
|
90
95
|
return res
|
91
96
|
|
92
97
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|