Skip to content
Snippets Groups Projects
Commit 8e467d3a authored by Moises Lopez's avatar Moises Lopez
Browse files

[FIX] phone_validation: Switch `phonenumbers` from logger.warning to logger.info

It was discussed previously from:
 - https://github.com/odoo/odoo/commit/b79d05fff0cacb4d99ebc1b60f44d8dab757b806



I quote Olivier Dony commit message:

"""
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.

Fixes #22426
Closes #22459
"""

closes odoo/odoo#40781

X-original-commit: 0394f5e9
Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
parent 27b90fc7
Branches
Tags
No related merge requests found
......@@ -68,7 +68,7 @@ except ImportError:
def phone_format(number, country_code, country_phone_code, force_format='INTERNATIONAL', raise_exception=True):
global _phonenumbers_lib_warning
if not _phonenumbers_lib_warning:
_logger.warning(
_logger.info(
"The `phonenumbers` Python module is not installed, contact numbers will not be "
"verified. Please install the `phonenumbers` Python module."
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment