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

Commit 1c9ae200 authored by Evan Laird's avatar Evan Laird
Browse files

[Status bar] Reduce length of BatteryController log

We don't need 300 lines anymore. 30 Seems reasonable since we have about
3 log lines per event, so this is effectively a 10-event buffer

Test: manually check dumpsys
Fixes: 300147438
Change-Id: I0ff8f5130b04d6f91318c7405bc2260519f69489
parent 2ae61c92
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -213,12 +213,11 @@ public interface StatusBarPolicyModule {
        return networkController.getDataSaverController();
    }

    /** Provides a log bufffer for BatteryControllerImpl */
    /** Provides a log buffer for BatteryControllerImpl */
    @Provides
    @SysUISingleton
    @BatteryControllerLog
    //TODO(b/300147438): reduce the size of this log buffer
    static LogBuffer provideBatteryControllerLog(LogBufferFactory factory) {
        return factory.create(BatteryControllerLogger.TAG, 300);
        return factory.create(BatteryControllerLogger.TAG, 30);
    }
}