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

Feature Request: debug logging core API requests #556

Open
mavwolverine opened this issue Jan 12, 2025 · 0 comments
Open

Feature Request: debug logging core API requests #556

mavwolverine opened this issue Jan 12, 2025 · 0 comments

Comments

@mavwolverine
Copy link

mavwolverine commented Jan 12, 2025

While reviewing some of the code written by the team, realized that it might be calling ST APIs too many times.

To investigate it, I tried using debug=True in init.

But it prints too much information. Even logs like, skipping this request since it does not match ST.

It would be great to have an api_debug=True flag.

Something simple like

if api_debug:
    logger.info("%s %s", method, path.get_as_string_dangerous())

at https://github.com/supertokens/supertokens-python/blob/master/supertokens_python/querier.py#L483

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