New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wsgi: move write access log info to own function #382
base: master
Are you sure you want to change the base?
Conversation
…to override and modify access log
Current coverage is 59% (diff: 100%)@@ master #382 diff @@
==========================================
Files 78 76 -2
Lines 8947 7079 -1868
Methods 0 0
Messages 0 0
Branches 1539 1108 -431
==========================================
- Hits 4871 4237 -634
+ Misses 3757 2566 -1191
+ Partials 319 276 -43
|
Can you show how this is used? |
It seems overriden function doesn't get a lot of useful information and has to resort to copying code. |
Actually I want override this function instead of override handle_one_response. My code will be like this:
Log example: From eventlet versions 0.19 and 0.20.1 function handle_one_response had changed that why I also need change my code. This change help resolve this problem in future. |
Okay, thanks, I understand problem and use case now. I'll modify your patch to avoid copying code like Ping and angry reminders are welcome. |
Ok. Any changes is up to you. |
Modify wsgi.py:
move write access log info to own function for better way to override and modify access log.
Due to necessity to write this info log in json format and add to log additional information from headers.