mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
Set statsd customer
This commit is contained in:
@@ -34,6 +34,7 @@ if statsd_active and statsd is None and StatsClient is not None:
|
|||||||
raise Exception(
|
raise Exception(
|
||||||
'STATSD_CUSTOMER must contain the name of the customer'
|
'STATSD_CUSTOMER must contain the name of the customer'
|
||||||
)
|
)
|
||||||
|
customer = os.environ.get('STATSD_CUSTOMER')
|
||||||
if os.environ.get('STATSD_ENVIRONMENT'):
|
if os.environ.get('STATSD_ENVIRONMENT'):
|
||||||
environment = os.environ['STATSD_ENVIRONMENT']
|
environment = os.environ['STATSD_ENVIRONMENT']
|
||||||
elif config.get('running_env'):
|
elif config.get('running_env'):
|
||||||
|
|||||||
Reference in New Issue
Block a user