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