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

Commit f1c79e01 authored by Siim Sammul's avatar Siim Sammul
Browse files

Log when large dropbox entries are dropped.

Test: manual
Bug: 215516219
Change-Id: I83396fd80bde04f033041067c66010630060506d
parent 715c51f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -479,6 +479,10 @@ public final class DropBoxManagerService extends SystemService {
            if (length > max) {
                // Log and fall through to create empty tombstone below
                Slog.w(TAG, "Dropping: " + tag + " (" + length + " > " + max + " bytes)");
                logDropboxDropped(
                        FrameworkStatsLog.DROPBOX_ENTRY_DROPPED__DROP_REASON__ENTRY_TOO_LARGE,
                        tag,
                        0);
            } else {
                temp = new File(mDropBoxDir, "drop" + Thread.currentThread().getId() + ".tmp");
                try (FileOutputStream out = new FileOutputStream(temp)) {