summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-03-15 17:41:30 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2012-03-15 17:42:11 -0700
commit2d142f3b1ca2d9eb993cee7989ff5954a6cc815c (patch)
tree8cea0b8b2673b7f0a0c77d8ad107688c351ce9bb
parentbb1e383ae328517593ad4757cc168bf58d951111 (diff)
downloadnova-2d142f3b1ca2d9eb993cee7989ff5954a6cc815c.tar.gz
nova-2d142f3b1ca2d9eb993cee7989ff5954a6cc815c.tar.xz
nova-2d142f3b1ca2d9eb993cee7989ff5954a6cc815c.zip
Use getLogger for nova-all
* logging.exception is not defined to to logging refactor Change-Id: Id95b3ca4dd3fd2cf3396e0b90d90c4a0edf90cf6
-rwxr-xr-xbin/nova-all6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/nova-all b/bin/nova-all
index beed333ce..94cafaa0c 100755
--- a/bin/nova-all
+++ b/bin/nova-all
@@ -48,6 +48,8 @@ from nova.objectstore import s3server
from nova.vnc import xvp_proxy
+LOG = logging.getLogger('nova.all')
+
if __name__ == '__main__':
utils.default_flagfile()
flags.FLAGS(sys.argv)
@@ -65,13 +67,13 @@ if __name__ == '__main__':
try:
servers.append(mod.get_wsgi_server())
except (Exception, SystemExit):
- logging.exception(_('Failed to load %s') % mod.__name__)
+ LOG.exception(_('Failed to load %s') % mod.__name__)
for binary in ['nova-compute', 'nova-volume',
'nova-network', 'nova-scheduler', 'nova-vsa', 'nova-cert']:
try:
servers.append(service.Service.create(binary=binary))
except (Exception, SystemExit):
- logging.exception(_('Failed to load %s' % binary))
+ LOG.exception(_('Failed to load %s' % binary))
service.serve(*servers)
service.wait()