mirror of https://github.com/M66B/FairEmail.git
Moved crash.log file
This commit is contained in:
parent
531eddf84b
commit
044723170e
|
@ -1420,7 +1420,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
new SimpleTask<Long>() {
|
||||
@Override
|
||||
protected Long onExecute(Context context, Bundle args) throws Throwable {
|
||||
File file = new File(context.getCacheDir(), "crash.log");
|
||||
File file = new File(context.getFilesDir(), "crash.log");
|
||||
if (file.exists()) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
try {
|
||||
|
|
|
@ -1628,7 +1628,7 @@ public class Log {
|
|||
}
|
||||
|
||||
static void writeCrashLog(Context context, Throwable ex) {
|
||||
File file = new File(context.getCacheDir(), "crash.log");
|
||||
File file = new File(context.getFilesDir(), "crash.log");
|
||||
Log.w("Writing exception to " + file);
|
||||
|
||||
try (FileWriter out = new FileWriter(file, true)) {
|
||||
|
|
Loading…
Reference in New Issue