SimpleRESTClientHandler icon indicating copy to clipboard operation
SimpleRESTClientHandler copied to clipboard

Cannot log entire headers of the request.

Open mohit-wal opened this issue 7 years ago • 3 comments

I am working on a project with this library. I have a method that is taking page number as argument and making a call to the same web service and loading different data based on the page number. i am receiving the same response always whereas when I make the same POST request from Postman or any other tool, I get correct response.

Unable to log because this library does not expose any logging by default.

mohit-wal avatar Nov 16 '17 06:11 mohit-wal

Hi @mohit-wal , to enable Logs you can call enableDebugLog(true) after the initialization of the RestClientManager, like:

RestClientManager.initialize(getApplicationContext()).enableDebugLog(true);

julianfalcionelli avatar Nov 16 '17 13:11 julianfalcionelli

Hi @julianfalcionelli, I have done that but it won't help you know the Headers of the request. Only the payload that you send. Correct me if I am wrong.

mohit-wal avatar Nov 16 '17 14:11 mohit-wal

@mohit-wal, sorry for the delay, you are right, headers are not logged. Keeping this opening to add support of that in the future.

The same you should not be having issues with Headers, with just passing it as Map should be enought, could you fix your problem ?

julianfalcionelli avatar Nov 30 '17 14:11 julianfalcionelli