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

Commit 38e25e85 authored by Massimo Carli's avatar Massimo Carli
Browse files

Improved OptProp logging

The existing log was too verbose because triggered when
a specific value for a property was not specified which is
the most common case.

Now the log is triggered when a wrong value for a boolean
property is set.

Flag: EXEMPT Refactoring
Fix: 418974224
Test: atest WmTests:OptPropFactoryTest

Change-Id: I9295049c5dc2001ac0284d3050ea6b35d84bf57b
parent 85a9ef7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,9 +229,9 @@ public class OptPropFactory {
                        mValue = VALUE_FALSE;
                    } else {
                        mValue = VALUE_UNSET;
                        Slog.w(TAG, "Error reading the property:" + mPropertyName);
                    }
                } catch (Exception e) {
                    Slog.w(TAG, "Cannot read opt property " + mPropertyName);
                    mValue = VALUE_UNSET;
                }
            }