Do not force metrics on production

This commit is contained in:
Guewen Baconnier
2017-04-29 09:19:16 +02:00
parent 5d6fc2722c
commit 4823d10eb5
-9
View File
@@ -131,14 +131,6 @@ class CloudPlatform(models.AbstractModel):
", we got: '%s'" % (prefix,) ", we got: '%s'" % (prefix,)
) )
@api.model
def _check_metrics(self, environment_name):
if environment_name == 'prod':
assert is_true(os.environ.get('ODOO_STATSD')), (
"Statds metrics must be activated on prod instances."
"This is done by setting ODOO_STATSD=1."
)
@api.model @api.model
def check(self): def check(self):
if is_true(os.environ.get('ODOO_CLOUD_PLATFORM_UNSAFE')): if is_true(os.environ.get('ODOO_CLOUD_PLATFORM_UNSAFE')):
@@ -157,7 +149,6 @@ class CloudPlatform(models.AbstractModel):
environment_name = config['running_env'] environment_name = config['running_env']
self._check_s3(environment_name) self._check_s3(environment_name)
self._check_redis(environment_name) self._check_redis(environment_name)
self._check_metrics(environment_name)
@api.cr @api.cr
def _register_hook(self, cr): def _register_hook(self, cr):