From: tierno Date: Thu, 20 Oct 2016 15:12:30 +0000 (+0000) Subject: add version to log X-Git-Tag: v1.0.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F555%2F2;p=osm%2FRO.git add version to log Change-Id: I29f6f53ac903d48f688157dfcae4f75d23fcba95 Signed-off-by: tierno --- 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