Catch debug log FileNotFoundExceptions (DEV) (#3259)
* On low storage, the system may clean caches without asking, if the parent dir of the debuglog is deleted, writing will fail with an exception. Catch that exception, and try to recreate the path+file, otherwise fail silently. * Update logsize after retry as log could have been deleted. Co-authored-by:harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
AlexanderAlferov <64849422+AlexanderAlferov@users.noreply.github.com>
Showing
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogWriter.kt 31 additions, 1 deletion...coronawarnapp/bugreporting/debuglog/internal/LogWriter.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogWriterTest.kt 23 additions, 0 deletions...nawarnapp/bugreporting/debuglog/internal/LogWriterTest.kt
Please register or sign in to comment