summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorDan Firth <dan.firth@codethink.co.uk>2013-10-04 13:18:23 +0000
committerDaniel Firth <dan.firth@codethink.co.uk>2013-10-11 10:29:06 +0100
commit31ca4d455d1bbce69c6dc461dbd506b3523ac2d9 (patch)
treeba2c0dd136c9781be6d7d0f69d81dab76f0e0896 /morphlib/builder2.py
parentdf64e4300d7b39c29ce75273196a7894c86a98a9 (diff)
downloadmorph-31ca4d455d1bbce69c6dc461dbd506b3523ac2d9.tar.gz
Added chunkname prefix to some elements of the debug log.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index e1eaaa86..bab89aa2 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -439,8 +439,10 @@ class ChunkBuilder(BuilderBase):
contents = morphlib.bins.chunk_contents(destdir, patterns)
self.write_metadata(destdir, artifact_name, contents)
- logging.debug('assembling chunk %s' % artifact_name)
- logging.debug('assembling into %s' % f.name)
+ self.app.status(msg='assembling chunk %s' % artifact_name,
+ chatty=True)
+ self.app.status(msg='assembling into %s' % f.name,
+ chatty=True)
self.app.status(msg='Creating chunk artifact %(name)s',
name=artifact.name)
morphlib.bins.create_chunk(destdir, f, patterns)
@@ -700,8 +702,10 @@ class Builder(object): # pragma: no cover
self.remote_artifact_cache, artifact,
self.repo_cache, self.max_jobs,
self.setup_mounts)
- logging.debug('Builder.build: artifact %s with %s' %
- (artifact.name, repr(o)))
+ self.app.status(msg='Builder.build: artifact %s with %s' %
+ (artifact.name, repr(o)),
+ chatty=True)
built_artifacts = o.build_and_cache()
- logging.debug('Builder.build: done')
+ self.app.status(msg='Builder.build: done',
+ chatty=True)
return built_artifacts