From b7752b77947cbd8fc6c8f91e0dfa9398f7cb5126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez?= Date: Fri, 22 Nov 2019 19:39:49 +0000 Subject: [PATCH] [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) --- addons/phone_validation/tools/phone_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." )