mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Merge pull request #6211 from jangsutsr/6188_handle_500_error_with_toggling_log_aggregator_enable
Handle 500 error with toggling log aggregator enable
This commit is contained in:
@@ -25,7 +25,7 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
|||||||
self.host_id = settings_module.CLUSTER_HOST_ID
|
self.host_id = settings_module.CLUSTER_HOST_ID
|
||||||
if hasattr(settings_module, 'LOG_AGGREGATOR_TOWER_UUID'):
|
if hasattr(settings_module, 'LOG_AGGREGATOR_TOWER_UUID'):
|
||||||
self.tower_uuid = settings_module.LOG_AGGREGATOR_TOWER_UUID
|
self.tower_uuid = settings_module.LOG_AGGREGATOR_TOWER_UUID
|
||||||
self.message_type = settings_module.LOG_AGGREGATOR_TYPE
|
self.message_type = getattr(settings_module, 'LOG_AGGREGATOR_TYPE', 'other')
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def reformat_data_for_log(self, raw_data, kind=None):
|
def reformat_data_for_log(self, raw_data, kind=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user