From: Kerim Gokarslan Date: Wed, 13 Sep 2017 22:57:10 +0000 (-0700) Subject: NFVBENCH-24 Send runlogdate as date X-Git-Tag: 1.0.7~1 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=4e74e931fb22017abffbe0c4dbed668d5be14e54;p=nfvbench.git NFVBENCH-24 Send runlogdate as date Change-Id: I2791d222c213081b356b64b7dae886ace034b14a Signed-off-by: Kerim Gokarslan --- diff --git a/nfvbench/fluentd.py b/nfvbench/fluentd.py index dc67008..93c90fa 100644 --- a/nfvbench/fluentd.py +++ b/nfvbench/fluentd.py @@ -41,7 +41,7 @@ class FluentLogHandler(logging.Handler): def start_new_run(self): '''Delimitate a new run in the stream of records with a new timestamp ''' - self.runlogdate = str(datetime.now()) + self.runlogdate = self.__get_timestamp() # reset counters self.__warning_counter = 0 self.__error_counter = 0