Skip to content

Better debugging #11

@elderamevans

Description

@elderamevans

I've come to realize, I have a distinct lack of debugging information support in the SDK. However, I want to find happy levels of debugging; I don't want to end up utterly spamming the prompt window, yet I don't want to leave something vital out.

What came to mind, so far:

class FamilySearch(...):
    def init(..., debug=None)

    def _request(...)
     ...
     if debug is not None:
         print(method, url)
     ...
    def _fs2py(...debug=None)

    if debug is not None:
        print(headers["status"], headers["message")

Something like that, anyway...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions