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

Commit e5c484cb authored by Dave Burke's avatar Dave Burke Committed by Android (Google) Code Review
Browse files

Merge "Increase max size of log size by 50% on userdebug builds."

parents 2b4d6517 0132a952
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -39,8 +39,10 @@ import java.io.IOException;
public class BootReceiver extends BroadcastReceiver {
    private static final String TAG = "BootReceiver";

    // Maximum size of a logged event (files get truncated if they're longer)
    private static final int LOG_SIZE = 65536;
    // Maximum size of a logged event (files get truncated if they're longer).
    // Give userdebug builds a larger max to capture extra debug, esp. for last_kmsg.
    private static final int LOG_SIZE =
        SystemProperties.getInt("ro.debuggable", 0) == 1 ? 98304 : 65536;

    private static final File TOMBSTONE_DIR = new File("/data/tombstones");