Skip to content
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

This extension does not work with gevent/greenlets #52

Open
halfdan opened this issue Mar 18, 2020 · 0 comments
Open

This extension does not work with gevent/greenlets #52

halfdan opened this issue Mar 18, 2020 · 0 comments

Comments

@halfdan
Copy link

halfdan commented Mar 18, 2020

This is similar to dabapps/django-log-request-id#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant