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
This commit is contained in:
Makoto Onuki
2016-02-10 13:41:15 -08:00
parent 8e87364a67
commit ad5619d447

View File

@@ -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;