Skip to content

Commit d682506

Browse files
committed
Shrink logger name
1 parent 71ca29d commit d682506

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

nginx/asyncio/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
import logging
2+
3+
log = logging.Logger(__name__)
4+
15
from .module import AsyncioModule

nginx/asyncio/module.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import asyncio
2-
import logging
32

3+
from . import log
44
from .. import NginxEventLoopPolicy
55
from ..module import BaseModule
66
from ..hooks import after_init_process
77

8-
log = logging.Logger(__name__)
9-
108

119
class AsyncioModule(BaseModule):
1210
def init_process(self):

nginx/http/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
import logging
2+
3+
log = logging.getLogger(__name__)
4+
15
from .module import HTTPModule

nginx/http/module.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import asyncio
2-
import logging
32

3+
from . import log
44
from .._nginx import run_phases
55
from ..module import BaseModule, ReturnCode
66

7-
log = logging.getLogger(__name__)
8-
97

108
class HTTPModule(BaseModule):
119
def __init__(self):

0 commit comments

Comments
 (0)