mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Reduce verbosity of phone number parse errors.
This commit is contained in:
committed by
Greyson Parrelli
parent
a56dd5ca87
commit
8036aaa985
@@ -110,7 +110,7 @@ public class PhoneNumberFormatter {
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -142,7 +142,7 @@ public class PhoneNumberFormatter {
|
||||
|
||||
return util.format(parsedNumber, PhoneNumberUtil.PhoneNumberFormat.E164);
|
||||
} catch (NumberParseException | NumberFormatException npe) {
|
||||
Log.w(TAG, npe);
|
||||
Log.d(TAG, npe.getClass().getSimpleName() + ": " + npe.getMessage());
|
||||
}
|
||||
|
||||
return "+" +
|
||||
|
||||
Reference in New Issue
Block a user