Skip to content

Feature Request: debug logging core API requests #556

@mavwolverine

Description

@mavwolverine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions