mirror of
https://github.com/sprockets/sprockets.logging.git
synced 2024-11-24 03:00:22 +00:00
tornado_log_function: Make work with Tornado 4.3.
Looks like HTTPHeaders changed a little: TypeError: <tornado.httputil.HTTPHeaders object at 0x10cde5cc0> is not JSON serializable
This commit is contained in:
parent
f0458ae2ff
commit
a41cca5751
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