muffin 0.98.0__py3-none-any.whl → 0.98.1__py3-none-any.whl

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/app.py CHANGED
@@ -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 = logging.getLogger("muffin")
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:
muffin/utils.py CHANGED
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: muffin
3
- Version: 0.98.0
3
+ Version: 0.98.1
4
4
  Summary: Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)
5
5
  Home-page: https://github.com/klen/muffin
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  muffin/__init__.py,sha256=F8Qp4ETX5FqI1832dj2moRAQ5hEb0TO9u4aRjSKXNjI,982
2
- muffin/app.py,sha256=pxLtgYyAOvpOgd_d_7VIGRPR3jGjxy4a2urK-aH1-EU,5250
2
+ muffin/app.py,sha256=E0lYNlye-9vHvPaW7YOE01bUzQG7ficRy3wISxC5ZFg,5237
3
3
  muffin/constants.py,sha256=Ga1UJiEdXUk6dIEH_IEVYkFSZxQFPhxie7fCJwQY8V0,71
4
4
  muffin/errors.py,sha256=I-vKbMMBiMU07zPdKvoJKqA7s4xYAUA-4oZXrRMRzcM,701
5
5
  muffin/handler.py,sha256=YGodKswFv-dNf8ABODp_JQx0M36nCGmcKewAolrsq9k,3754
@@ -8,8 +8,8 @@ muffin/plugins.py,sha256=rIBO7Y3i3UUGyjPzjkS8XrEcOeoDTRg6sZiMfKtBuhY,2857
8
8
  muffin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  muffin/pytest.py,sha256=Fzersdp2WoO9xCKx5Cezp3yU-We2AU6etiQcT360p3E,2705
10
10
  muffin/types.py,sha256=wsUj5oAfqSZMoEf-wyFJLBlWa8Mc-eJGqKLr02HxuXE,153
11
- muffin/utils.py,sha256=o_b87qKMiYlKMfe6DEx4T_NHPGZ4SNoygV3VIDNgGlc,2584
12
- muffin-0.98.0.dist-info/METADATA,sha256=_PcHODln1KGSR8AJ1UqLGF2pZ4W2pukVkyjck9-DpNs,11329
13
- muffin-0.98.0.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
14
- muffin-0.98.0.dist-info/entry_points.txt,sha256=GvPS3M-tNVPzhUS5jnUpOmWw2NAqedY34VRCYgPYzlM,84
15
- muffin-0.98.0.dist-info/RECORD,,
11
+ muffin/utils.py,sha256=SgTKGgpYq73VFabZIU0yf_rM5szJ4QD-gF9HQbspiJc,2743
12
+ muffin-0.98.1.dist-info/METADATA,sha256=GhHbT0vbbljkPKsOubTtLNQLf1hsIcdoqicyvwKD8Zo,11329
13
+ muffin-0.98.1.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
14
+ muffin-0.98.1.dist-info/entry_points.txt,sha256=GvPS3M-tNVPzhUS5jnUpOmWw2NAqedY34VRCYgPYzlM,84
15
+ muffin-0.98.1.dist-info/RECORD,,