supertokens-python icon indicating copy to clipboard operation
supertokens-python copied to clipboard

Feature Request: debug logging core API requests

Open mavwolverine opened this issue 11 months ago • 0 comments

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

mavwolverine avatar Jan 12 '25 01:01 mavwolverine