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

Commit ad5619d4 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Use Slog.e() instead of Slog.wtf() for unknown restrictions

Slog.wtf() normally indicates a bug in the system, but in this case
it's a caller side issue, so e() is more suitable.

Bug 26918715

Change-Id: I94980cb9dafd34e6c5672bf833fec921df14e6a1
parent 8e87364a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ public class UserRestrictionsUtils {
     */
    public static boolean isValidRestriction(@NonNull String restriction) {
        if (!USER_RESTRICTIONS.contains(restriction)) {
            Slog.wtf(TAG, "Unknown restriction: " + restriction);
            Slog.e(TAG, "Unknown restriction: " + restriction);
            return false;
        }
        return true;