From aceb46455ba16b5cfddd8cde528251a57e8a3b56 Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 20 Oct 2016 15:12:30 +0000 Subject: [PATCH] add version to log Change-Id: I29f6f53ac903d48f688157dfcae4f75d23fcba95 Signed-off-by: tierno --- openmanod.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmanod.py b/openmanod.py index 62b83acf..bbbd7d30 100755 --- a/openmanod.py +++ b/openmanod.py @@ -237,7 +237,8 @@ if __name__=="__main__": raise LoadConfigurationException("Cannot open logging file '{}': {}. Check folder exist and permissions".format(global_config["log_file"], str(e)) ) #logging.basicConfig(level = getattr(logging, global_config.get('log_level',"debug"))) logger.setLevel(getattr(logging, global_config['log_level'])) - logger.critical("Starting openmano server command: '%s'", sys.argv[0]) + logger.critical("Starting openmano server version: '%s %s' command: '%s'", + __version__, version_date, " ".join(sys.argv)) for log_module in ("nfvo", "http", "vim", "db"): log_level_module = "log_level_" + log_module -- 2.25.1