File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ def set_port(cls, port: int) -> None:
11
11
cls .port = port
12
12
13
13
def __init__ (self , * args , ** kwargs ):
14
- super ().__init__ (* args , ** kwargs )
15
14
self ._runner = None
16
15
self ._kwargs = {}
16
+ super ().__init__ (* args , ** kwargs )
17
17
18
18
def set_config (self , config ):
19
19
if self .port :
@@ -27,11 +27,11 @@ def set_config(self, config):
27
27
async def init (self ):
28
28
access_log_format = self .config .get ('access_log.format' )
29
29
if not access_log_format :
30
- cfg = self .context .config . logging
31
- for i in 'formatters.access' .split ('.' ):
30
+ cfg = self .context .config
31
+ for i in 'logging. formatters.access' .split ('.' ):
32
32
if not cfg :
33
33
break
34
- cfg = cfg .get (i )
34
+ cfg = cfg .get (i , {} )
35
35
else :
36
36
access_log_format = cfg .get ('format' )
37
37
if access_log_format :
You can’t perform that action at this time.
0 commit comments