Skip to content

Request: Ability to debug requests #242

@thomaspaulin

Description

@thomaspaulin

Ola Mauricio,

First of all thanks for creating this SDK, it looks very promising! I was trying the example which sends a text message, but because I initially used the wrong phone number it didn't work. Unfortunately, I only found this out due to messing with the variables since there doesn't appear to be any logging (All I see is that java finished with a non-zero code).

In #82 you mentioned you were looking into ways to log the requests, did you ever figure something out?

Thanks!

Edit: I'm going to try https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor and will report back if it works well.
Edit2: Forking this library and using the above interceptor produced logs showed the HTTP Method, URL, headers, and body.

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