better logging of exceptions

This commit is contained in:
Justin Santa Barbara 2011-03-24 04:36:23 +00:00 committed by Tarmac
commit 6eef7ff7a8

View File

@ -121,8 +121,8 @@ class ComputeManager(manager.Manager):
try:
self.driver = utils.import_object(compute_driver)
except ImportError:
LOG.error("Unable to load the virtualization driver.")
except ImportError as e:
LOG.error(_("Unable to load the virtualization driver: %s") % (e))
sys.exit(1)
self.network_manager = utils.import_object(FLAGS.network_manager)