summaryrefslogtreecommitdiff
path: root/nova/cmd/api.py
diff options
context:
space:
mode:
authorDavanum Srinivas <davanum@gmail.com>2015-02-09 17:28:19 -0500
committerDavanum Srinivas <davanum@gmail.com>2015-02-22 07:56:40 -0500
commit97d63d8745cd9b3b391ce96b94b4da263b3a053d (patch)
treed5263049b6672424f7ad5ec7e8aa364609022b40 /nova/cmd/api.py
parent69d0c643610dadca24fd146b6fdcfd82362fb431 (diff)
downloadnova-97d63d8745cd9b3b391ce96b94b4da263b3a053d.tar.gz
Use oslo.log
Convert the use of the incubated version of the log module to the new oslo.log library. Sync oslo-incubator modules to update their imports as well. Co-Authored-By: Doug Hellmann <doug@doughellmann.com> Change-Id: Ic4932e3f58191869c30bd07a010a6e9fdcb2a12c
Diffstat (limited to 'nova/cmd/api.py')
-rw-r--r--nova/cmd/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/cmd/api.py b/nova/cmd/api.py
index 25548cddb4..770cb95d36 100644
--- a/nova/cmd/api.py
+++ b/nova/cmd/api.py
@@ -23,10 +23,10 @@ Starts both the EC2 and OpenStack APIs in separate greenthreads.
import sys
from oslo_config import cfg
+from oslo_log import log as logging
from nova import config
from nova import objects
-from nova.openstack.common import log as logging
from nova.openstack.common.report import guru_meditation_report as gmr
from nova import service
from nova import utils
@@ -39,7 +39,7 @@ CONF.import_opt('enabled_ssl_apis', 'nova.service')
def main():
config.parse_args(sys.argv)
- logging.setup("nova")
+ logging.setup(CONF, "nova")
utils.monkey_patch()
objects.register_all()