diff options
| author | Moisés López <moylop260@vauxoo.com> | 2019-11-22 19:39:49 +0000 |
|---|---|---|
| committer | Moisés López <moylop260@vauxoo.com> | 2019-11-22 19:41:28 +0000 |
| commit | b7752b77947cbd8fc6c8f91e0dfa9398f7cb5126 (patch) | |
| tree | 2e2cad9f81c1745e2ccc64b7bd392b64b74d537d /addons/phone_validation/tools | |
| parent | 161ceea3240ea7d1aa6835433d40b48f50543f27 (diff) | |
[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#40788
X-original-commit: 0394f5e95702087b38357070aad43f2b477c374e
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/phone_validation/tools')
| -rw-r--r-- | addons/phone_validation/tools/phone_validation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/phone_validation/tools/phone_validation.py b/addons/phone_validation/tools/phone_validation.py index 91ee9ba6b37..f54edbe301f 100644 --- a/addons/phone_validation/tools/phone_validation.py +++ b/addons/phone_validation/tools/phone_validation.py @@ -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." ) |
