[FIX] sms: switch phonenumbers warning to INFO

Having it in INFO should be sufficient for its purpose, and will avoid
impacting all CI builds done on a system that does not have the lib
installed.

For the record, this is not a hard requirement because the lib was not
available in Debian stable packages at the time of release. It is only
enabled on demand for those who want the feature and can install it
manually.

Also slightly improved the message.

Fixes #22426
Closes #22459
This commit is contained in:
Olivier Dony
2018-01-24 11:25:50 +01:00
parent 2bdbe40414
commit b79d05fff0
+4 -2
View File
@@ -15,8 +15,10 @@ try:
except ImportError:
_sms_phonenumbers_lib_imported = False
_logger.warning(
"The `phonenumbers` Python module is not installed. Try: pip install phonenumbers."
_logger.info(
"The `phonenumbers` Python module is not available. "
"Phone number validation will be skipped. "
"Try `pip3 install phonenumbers` to install it."
)