mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 08:17:39 -02:30
add a new logger, awx.analytics.performance.api
* Used to log API timing information
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user