diff options
author | Thierry Carrez <thierry@openstack.org> | 2011-02-18 16:08:33 +0100 |
---|---|---|
committer | Thierry Carrez <thierry@openstack.org> | 2011-02-18 16:08:33 +0100 |
commit | a0145eed239a7afb545def17f25a08e8e4c68824 (patch) | |
tree | 0d382be74590d5061fd842e6704d54a598a14b60 | |
parent | debfca945627323c160b4ad9aa9b63b364deff99 (diff) | |
download | nova-a0145eed239a7afb545def17f25a08e8e4c68824.tar.gz nova-a0145eed239a7afb545def17f25a08e8e4c68824.tar.xz nova-a0145eed239a7afb545def17f25a08e8e4c68824.zip |
Set up logging once FLAGS properly read, no need to redo logging config anymore (was inoperant anyway)
-rwxr-xr-x | bin/nova-api | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/nova-api b/bin/nova-api index e7ee6f6fe..46f695248 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -39,10 +39,6 @@ from nova import log as logging from nova import version from nova import wsgi -logging.basicConfig() -LOG = logging.getLogger('nova.api') -LOG.setLevel(logging.DEBUG) - FLAGS = flags.FLAGS API_ENDPOINTS = ['ec2', 'osapi'] @@ -72,8 +68,6 @@ def run_app(paste_config_file): paste_config_file) return - # NOTE(todd): redo logging config, verbose could be set in paste config - logging.basicConfig() server = wsgi.Server() for app in apps: server.start(*app) @@ -82,6 +76,8 @@ def run_app(paste_config_file): if __name__ == '__main__': FLAGS(sys.argv) + logging.basicConfig() + LOG = logging.getLogger('nova.api') LOG.audit(_("Starting nova-api node (version %s)"), version.version_string_with_vcs()) LOG.debug(_("Full set of FLAGS:")) |