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

Add a debug mode #113

Open
josephwegner opened this issue Jan 19, 2017 · 2 comments
Open

Add a debug mode #113

josephwegner opened this issue Jan 19, 2017 · 2 comments

Comments

@josephwegner
Copy link
Contributor

Mostly more verbose logging. Open to other suggestions for debug mode as well.

@BlackVegetable
Copy link
Contributor

@josephwegner Can you give a (brief) example of the kind of thing that would be useful here?

@masojus
Copy link
Contributor

masojus commented Sep 20, 2017

Off the top of my head, a few things might be handy:

  1. Pretty-printing the JSON for request and response payloads
  2. More verbose logging of errors beyond what's in the Error string when an Error is raised
  3. Dump URLs and headers. Right now, the Error object tends to have the error code and message returned from the server, but in DEBUG mode we could also write detailed info to a given logger.
  4. Log class/function/args in verbose mode to see data flow through call paths where maybe and Error doesn't get raised, but should have or some other strange behavior is occurring.
  5. Dump keys? (potentially only if an env var or something is set to be super careful about not having this on by default for obvious reasons).

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

No branches or pull requests

3 participants