jgilfelt / chuck

An in-app HTTP inspector for Android OkHttp clients
Apache License 2.0
4.68k stars 452 forks source link

Archive logs #38

Closed abredykhin closed 7 years ago

abredykhin commented 7 years ago

My app just crashed due to bad response from server. But I couldn't capture what was wrong in the response because Chuck also disappeared from notification area. And I can't access logs from the previous session.

Would be nice to be able to access data captured in the previous session (before app crash)

jgilfelt commented 7 years ago

And I can't access logs from the previous session.

I don't understand why that would be the case. Unless you manually clear it, Chuck persists request data for one week by default, and you can set a different retention period with the retainDataFor method. I can't stop the notification from disappearing if your application process crashes, but you can always launch the UI directly via intent.

abredykhin commented 7 years ago

My bad, didn't realize that data is being stored