mirror of
https://github.com/sprockets/sprockets.logging.git
synced 2024-11-27 19:29:53 +00:00
Merge pull request #10 from sprockets/tornado43-fixes
tornado_log_function: Make work with Tornado 4.3.
This commit is contained in:
commit
37ff1180f9
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
Version History
|
Version History
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
`Next Release`_
|
||||||
|
---------------
|
||||||
|
- Updated ``tornado_log_function`` to work with Tornado 4.3.
|
||||||
|
|
||||||
`1.3.2`_ Oct 2, 2015
|
`1.3.2`_ Oct 2, 2015
|
||||||
---------------------
|
---------------------
|
||||||
- Switch to packaging as a package instead of a py_module.
|
- Switch to packaging as a package instead of a py_module.
|
||||||
|
@ -40,6 +44,8 @@ Version History
|
||||||
---------------------
|
---------------------
|
||||||
- Added :class:`sprockets.logging.ContextFilter`
|
- Added :class:`sprockets.logging.ContextFilter`
|
||||||
|
|
||||||
|
.. _Next Release: https://github.com/sprockets/sprockets.logging/compare/1.3.2...master
|
||||||
|
|
||||||
.. _1.3.2: https://github.com/sprockets/sprockets.logging/compare/1.3.1...1.3.2
|
.. _1.3.2: https://github.com/sprockets/sprockets.logging/compare/1.3.1...1.3.2
|
||||||
.. _1.3.1: https://github.com/sprockets/sprockets.logging/compare/1.3.0...1.3.1
|
.. _1.3.1: https://github.com/sprockets/sprockets.logging/compare/1.3.0...1.3.1
|
||||||
.. _1.3.0: https://github.com/sprockets/sprockets.logging/compare/1.2.1...1.3.0
|
.. _1.3.0: https://github.com/sprockets/sprockets.logging/compare/1.2.1...1.3.0
|
||||||
|
|
|
@ -145,7 +145,7 @@ def tornado_log_function(handler):
|
||||||
handler.request.headers.get('Correlation-ID', None))
|
handler.request.headers.get('Correlation-ID', None))
|
||||||
log_method('', {'correlation_id': correlation_id,
|
log_method('', {'correlation_id': correlation_id,
|
||||||
'duration': 1000.0 * handler.request.request_time(),
|
'duration': 1000.0 * handler.request.request_time(),
|
||||||
'headers': handler.request.headers,
|
'headers': dict(handler.request.headers),
|
||||||
'method': handler.request.method,
|
'method': handler.request.method,
|
||||||
'path': handler.request.path,
|
'path': handler.request.path,
|
||||||
'protocol': handler.request.protocol,
|
'protocol': handler.request.protocol,
|
||||||
|
|
Loading…
Reference in a new issue