Skip to content

Commit

Permalink
Fix #2633: Correct default logger format.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 30, 2017
1 parent aaa7d54 commit ad2a833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiohttp/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class AccessLogger(AbstractAccessLogger):
'o': 'response_header',
}

LOG_FORMAT = '%a %l %u %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i"'
LOG_FORMAT = '%a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
FORMAT_RE = re.compile(r'%(\{([A-Za-z0-9\-_]+)\}([ioe])|[atPrsbOD]|Tf?)')
CLEANUP_RE = re.compile(r'(%[^s])')
_FORMAT_CACHE = {}
Expand Down
2 changes: 1 addition & 1 deletion docs/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ request and response:

Default access log format is::

'%a %l %u %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i"'
'%a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'

.. versionadded:: 2.3.0

Expand Down

0 comments on commit ad2a833

Please sign in to comment.