Handle 500 error with toggling log aggregator enable.

This commit is contained in:
Aaron Tan 2017-05-08 15:47:58 -04:00
parent 3ed9ebed89
commit 95b09795a8

View File

@ -25,7 +25,7 @@ class LogstashFormatter(LogstashFormatterVersion1):
self.host_id = settings_module.CLUSTER_HOST_ID
if hasattr(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
def reformat_data_for_log(self, raw_data, kind=None):