add version to log 55/555/2 v1.0.1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 20 Oct 2016 15:12:30 +0000 (15:12 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 24 Oct 2016 16:20:18 +0000 (18:20 +0200)
Change-Id: I29f6f53ac903d48f688157dfcae4f75d23fcba95
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
openmanod.py

index 62b83ac..bbbd7d3 100755 (executable)
@@ -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