Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 368ae7ff authored by Jian Jin's avatar Jian Jin Committed by Android (Google) Code Review
Browse files

Merge "Logging atom TOMB_STONE_OCCURRED when a tombstone file added to dropbox."

parents fd283c35 332d1a9e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -267,7 +267,6 @@ public class BootReceiver extends BroadcastReceiver {
                    if (file.isFile() && file.getName().startsWith("tombstone_")) {
                        addFileToDropBox(db, timestamps, headers, file.getPath(), LOG_SIZE,
                                TAG_TOMBSTONE);
                        StatsLog.write(StatsLog.TOMB_STONE_OCCURRED);
                    }
                } catch (IOException e) {
                    Slog.e(TAG, "Can't log tombstone", e);
@@ -308,6 +307,9 @@ public class BootReceiver extends BroadcastReceiver {
        if (tag.equals(TAG_TOMBSTONE) && fileContents.contains(">>> system_server <<<")) {
            addTextToDropBox(db, "system_server_native_crash", text, filename, maxSize);
        }
        if (tag.equals(TAG_TOMBSTONE)) {
            StatsLog.write(StatsLog.TOMB_STONE_OCCURRED);
        }
        addTextToDropBox(db, tag, text, filename, maxSize);
    }