Skip to content

Commit

Permalink
Reduce verbosity of phone number parse errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal authored and greyson-signal committed Aug 24, 2022
1 parent a56dd5c commit 8036aaa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static String formatNumber(String number, String localNumber)
PhoneNumber numberObject = util.parse(number, localCountryCode);
return util.format(numberObject, PhoneNumberFormat.E164);
} catch (NumberParseException e) {
Log.w(TAG, e);
Log.d(TAG, e.getClass().getSimpleName() + ": " + e.getMessage());
return impreciseFormatNumber(number, localNumber);
}
}
Expand Down Expand Up @@ -142,7 +142,7 @@ public static String formatE164(String countryCode, String number) {

return util.format(parsedNumber, PhoneNumberUtil.PhoneNumberFormat.E164);
} catch (NumberParseException | NumberFormatException npe) {
Log.w(TAG, npe);
Log.d(TAG, npe.getClass().getSimpleName() + ": " + npe.getMessage());
}

return "+" +
Expand Down

0 comments on commit 8036aaa

Please sign in to comment.