From 9fe242054709e2de7e149a56a1813577d4c23db8 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Wed, 5 Jul 2017 16:40:02 +0200 Subject: [PATCH] also log start of config run Signed-off-by: Steven Armstrong --- cdist/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cdist/config.py b/cdist/config.py index 0d847dea..eee47d03 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -269,6 +269,8 @@ class Config(object): """Do what is most often done: deploy & cleanup""" start_time = time.time() + self.log.info("Starting configuration run") + self._init_files_dirs() self.explorer.run_global_explorers(self.local.global_explorer_out_path) @@ -276,8 +278,8 @@ class Config(object): self.iterate_until_finished() self.local.save_cache(start_time) - self.log.info("Finished successful run in %s seconds", - time.time() - start_time) + self.log.info("Finished successful run in {:.2f} seconds".format( + time.time() - start_time)) def object_list(self): """Short name for object list retrieval"""