mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
more general name for performance logger
This commit is contained in:
@@ -41,7 +41,7 @@ __all__ = ['APIView', 'GenericAPIView', 'ListAPIView', 'SimpleListAPIView',
|
||||
'DeleteLastUnattachLabelMixin',]
|
||||
|
||||
logger = logging.getLogger('awx.api.generics')
|
||||
analytics_logger = logging.getLogger('awx.analytics.performance.api')
|
||||
analytics_logger = logging.getLogger('awx.analytics.performance')
|
||||
|
||||
|
||||
def get_view_name(cls, suffix=None):
|
||||
|
||||
@@ -81,7 +81,7 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
||||
else:
|
||||
data_for_log['facts'] = data
|
||||
data_for_log['module_name'] = module_name
|
||||
elif kind == 'performance.api':
|
||||
elif kind == 'performance':
|
||||
return raw_data
|
||||
return data_for_log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user