Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Android spring framework: print the sent requests

I use the spring framework for Android to make calls to a rest server. I can't find a way for debugging the sent requests, I would like to print the raw body of the requests built by the framework. It seems pretty basic but as the framework auto serialize the objects, I can't figure out how to print the raw final body.

Is anybody have a solution?

Thanks for your advice.

like image 873
FabiF Avatar asked Mar 29 '13 13:03

FabiF


1 Answers

Try this command:

adb shell setprop log.tag.RestTemplate VERBOSE

(You can find adb in ...android-sdk/platform-tools/)

like image 77
chipiik Avatar answered Sep 28 '22 04:09

chipiik