X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=nfvbench%2Fnfvbench.py;h=84f98381c7538fd0600329e67533206447232cfd;hb=34cbe7031415297ee5c2b6c7059801603398fa7f;hp=4256f24949e5631fedb220ee530a925d10d1a497;hpb=2cf11d9c962809f108ada00a5ebf2c866c5e5a7b;p=nfvbench.git 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))