Browse Source

Merge pull request #2786 from greyli/patch-9

[Docs] Make super() compatible for Python2
pull/2787/merge
Hsiaoming Yang 7 years ago committed by GitHub
parent
commit
cae037812b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/logging.rst

2
docs/logging.rst

@ -124,7 +124,7 @@ handler. ::
def format(self, record):
record.url = request.url
record.remote_addr = request.remote_addr
return super().format(record)
return super(RequestFormatter, self).format(record)
formatter = RequestFormatter(
'[%(asctime)s] %(remote_addr)s requested %(url)s\n'

Loading…
Cancel
Save