flask-log-request-id icon indicating copy to clipboard operation
flask-log-request-id copied to clipboard

This extension does not work with gevent/greenlets

Open halfdan opened this issue 5 years ago • 0 comments
trafficstars

This is similar to https://github.com/dabapps/django-log-request-id/issues/10, with the difference that the django-log-request-id module uses threading.local to store the request id. Flask.g does not work in greenlets (see also: https://stackoverflow.com/questions/47384600/access-flask-g-inside-greenlet).

It would be great if this module could use threading.local instead of flask.g to store the request_id.

halfdan avatar Mar 18 '20 13:03 halfdan