From d96c8d5f7c511dd77a1d87ad0f36a05ba13cf0a8 Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Wed, 7 Dec 2016 10:55:06 -0500 Subject: [PATCH] ES INFO output Changing the ES PUT ouput from INFO to DEBUG for all workloads. Change-Id: I1dae5e7453dc5d610aeb29588f7d344bd56e0e8d --- lib/Elastic.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/Elastic.py b/lib/Elastic.py index 70236a9a3..807660f4c 100644 --- a/lib/Elastic.py +++ b/lib/Elastic.py @@ -82,14 +82,9 @@ class Elastic(object): body=result, doc_type=_type, refresh=True) - if self.workload == "shaker": - self.logger.debug("Pushed data to Elasticsearch to index {}" - " and browbeat UUID {}" . - format(self.index, result['browbeat_uuid'])) - else: - self.logger.info("Pushed data to Elasticsearch to index {}" - " and browbeat UUID {}" . - format(self.index, result['browbeat_uuid'])) + self.logger.debug("Pushed data to Elasticsearch to index {}" + "and browbeat UUID {}". + format(self.index, result['browbeat_uuid'])) return True except Exception as Err: self.logger.error("Error pushing data to Elasticsearch, going to retry"