diff options
author | Asteroide <thomas.duval@orange.com> | 2018-10-05 15:01:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-05 15:01:17 +0000 |
commit | cbea4e360e9bfaa9698cf7c61c83c96a1ba89b8c (patch) | |
tree | a8bf6a7bfb06605ed5bfab77570afbe1e46cff4b /moon_authz/moon_authz/server.py | |
parent | a3f68df52836676b23ac0f5e3d8c40c957ee80a7 (diff) | |
parent | 2e35a7e46f0929438c1c206e3116caa829f07dc6 (diff) |
Merge "Update code to 4.6 official version"
Diffstat (limited to 'moon_authz/moon_authz/server.py')
-rw-r--r-- | moon_authz/moon_authz/server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moon_authz/moon_authz/server.py b/moon_authz/moon_authz/server.py index 0cc5f6fc..d1b5a59b 100644 --- a/moon_authz/moon_authz/server.py +++ b/moon_authz/moon_authz/server.py @@ -8,7 +8,7 @@ import logging from moon_authz.http_server import HTTPServer as Server from python_moonutilities import configuration, exceptions -logger = logging.getLogger("moon.authz.server") +LOGGER = logging.getLogger("moon.authz.server") def create_server(): @@ -20,7 +20,7 @@ def create_server(): pdp_id = os.getenv("PDP_ID") meta_rule_id = os.getenv("META_RULE_ID") keystone_project_id = os.getenv("KEYSTONE_PROJECT_ID") - logger.info("component_type={}".format(component_type)) + LOGGER.info("component_type={}".format(component_type)) conf = configuration.get_plugins() # conf = configuration.get_configuration("plugins/{}".format(component_type)) # conf["plugins/{}".format(component_type)]['id'] = component_id @@ -31,7 +31,7 @@ def create_server(): port = conf[component_type].get('port', tcp_port) bind = conf[component_type].get('bind', "0.0.0.0") - logger.info("Starting server with IP {} on port {} bind to {}".format( + LOGGER.info("Starting server with IP {} on port {} bind to {}".format( hostname, port, bind)) server = Server( host=bind, |