bosphere/Android-FileLogger

Unable to log causes a crash

Closed this issue · 0 comments

Instead of causing this crash, the app could have a "I dont care if the logging fails" silent error.

I'm not sure if the user sees this crash, but it's not good if they do

Fatal Exception: java.lang.IllegalStateException: failed to create log dir: [/storage/emulated/0/Android/data/com.myapp/files/logs]
at com.bosphere.filelogger.FLUtil.ensureDir(FLUtil.java:66)
at com.bosphere.filelogger.FileLoggerService.onHandleIntent(FileLoggerService.java:84)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)