diff options
author | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-27 16:43:36 -0700 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2017-10-20 00:37:13 -0700 |
commit | 37da1d6d2530a94d5fa2e5644bf7ae30ac9553b3 (patch) | |
tree | 3f4fc966ef363e80f54709429a4735eab56d6033 /nfvbench/nfvbench.py | |
parent | a3b10cdbc47038d2048870e68fe805a5a86505c3 (diff) |
NFVBENCH-35 Runlogdate is 0 in resultnfvbench
Change-Id: Ib062a7c655b1e2f8bd9304e32e3ffc92948c02c4
Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
Diffstat (limited to 'nfvbench/nfvbench.py')
-rw-r--r-- | nfvbench/nfvbench.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index 4256f24..84f9838 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -129,10 +129,13 @@ class NFVBench(object): def prepare_summary(self, result): """Prepares summary of the result to print and send it to logger (eg: fluentd)""" - sender = FluentLogHandler("resultnfvbench", - fluentd_ip=self.config.fluentd.ip, - fluentd_port=self.config.fluentd.port) \ - if self.config.fluentd.logging_tag else None + global fluent_logger + sender = None + if fluent_logger: + sender = FluentLogHandler("resultnfvbench", + fluentd_ip=self.config.fluentd.ip, + fluentd_port=self.config.fluentd.port) + sender.runlogdate = fluent_logger.runlogdate summary = NFVBenchSummarizer(result, sender) LOG.info(str(summary)) |