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

@@ -116,7 +116,7 @@ class BaseHTTPSHandler(logging.Handler):
if not logger_name.startswith('awx.analytics'):
# Tower log emission is only turned off by enablement setting
return False
return self.enabled_loggers is None or logger_name.split('.')[-1] not in self.enabled_loggers
return self.enabled_loggers is None or logger_name[len('awx.analytics.'):] not in self.enabled_loggers
def emit(self, record):
"""