svthalia / Reaxit

The latest ThaliApp built on Flutter.
GNU General Public License v3.0
11 stars 3 forks source link

Add api request logging in debug mode #423

Closed JeeVee11 closed 1 year ago

JeeVee11 commented 1 year ago

Closes #418.

Summary

In debug mode for all API requests the url and response code, or exception will be logged to the console.

How to test

Steps to test the changes you made:

  1. Start app in debug mode.
  2. See all request logged in the console.
JAicewizard commented 1 year ago

I think just overriding the send method should work, as that is used by all the methods already and also covers what you do manually in updateAvatar. I can test it this evening and push if you want.

But I rly like this PR, looking forward to no longer having to put print statements everywhere when wanting to see what the API does.