add a new logger, awx.analytics.performance.api

* Used to log API timing information
This commit is contained in:
Chris Meyers
2017-02-06 09:14:12 -05:00
parent 68fc75070d
commit af9975c6af
4 changed files with 48 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
import json
import logging
import os
import uuid
# Django
from django.utils.translation import ugettext_lazy as _
@@ -313,3 +314,13 @@ register(
category=_('Logging'),
category_slug='logging',
)
register(
'LOG_TOWER_UUID',
field_class=fields.CharField,
allow_blank=True,
label=_('Cluster-wide Tower unique identifier.'),
help_text=_('Useful to uniquely identify Tower instances.'),
category=_('Logging'),
category_slug='logging',
default=uuid.uuid4(),
)