BatteryStatsService: limit logspam

BatteryStatsService prints info logs from wakeup callback which
contaminating logcat. The log message is a fixed message and doesn't
add any value. Changed to verbose level instead.

Test: Builds

Upstream from Meta.

Change-Id: I2b97d4476d5810eb6efd603eab714324ee32cefc
This commit is contained in:
Svet Ganov
2022-10-28 22:48:12 -07:00
parent 9e7649d5e7
commit 6cb129e92d

View File

@@ -98,7 +98,7 @@ class WakeupCallback : public BnSuspendCallback {
public:
binder::Status notifyWakeup(bool success,
const std::vector<std::string>& wakeupReasons) override {
ALOGI("In wakeup_callback: %s", success ? "resumed from suspend" : "suspend aborted");
ALOGV("In wakeup_callback: %s", success ? "resumed from suspend" : "suspend aborted");
bool reasonsCaptured = false;
{
std::unique_lock<std::mutex> reasonsLock(mReasonsMutex, std::defer_lock);