Add some logging to the test harness

This commit is contained in:
Anders Ingemann 2015-04-09 20:38:15 +02:00
parent 3c5d385a69
commit 0b49943383

View file

@ -1,5 +1,7 @@
from contextlib import contextmanager
from bootstrapvz.remote import register_deserialization_handlers
import logging
log = logging.getLogger(__name__)
# Register deserialization handlers for objects
# that will pass between server and client
@ -18,9 +20,12 @@ def boot_manifest(manifest_data, boot_vars={}):
manifest = Manifest(data=manifest_data)
bootstrap_info = None
log.info('Connecting to build server')
with build_server.connect() as connection:
log.info('Building manifest')
bootstrap_info = connection.run(manifest)
log.info('Creating and booting instance')
from ..images import initialize_image
image = initialize_image(manifest, build_server, bootstrap_info)
try: