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

Commit e68ea024 authored by Harry Cutts's avatar Harry Cutts
Browse files

InputProcessor: be more specific in queue error log

BlockingQueue::push only returns false if the queue's full, so let's say that in the log message rather vaguely saying "could not add".

Bug: 245989146
Test: none
Flag: EXEMPT log only update
Change-Id: Ic9a8d6ac8c708ed479dce6bbdba37aa97ca9860a
parent 76dd2b71
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -249,8 +249,7 @@ void MotionClassifier::processEvents() {
void MotionClassifier::enqueueEvent(ClassifierEvent&& event) {
    bool eventAdded = mEvents.push(std::move(event));
    if (!eventAdded) {
        // If the queue is full, suspect the HAL is slow in processing the events.
        ALOGE("Could not add the event to the queue. Resetting");
        ALOGW("Event queue full; the HAL is probably being slow. Resetting");
        reset();
    }
}