aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/pkg.go21
1 files changed, 19 insertions, 2 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index c1a3f97e..a79f66a1 100644
--- a/internal/pkg/pkg.go
+++ b/internal/pkg/pkg.go
@@ -741,7 +741,13 @@ func (c *Cache) openFile(f File) (r io.ReadCloser, err error) {
return
}
if c.msg.IsVerbose() {
- c.msg.Verbosef("curing %s to memory...", reportName(f))
+ rn := reportName(f)
+ c.msg.Verbosef("curing %s to memory...", rn)
+ defer func() {
+ if err == nil {
+ c.msg.Verbosef("cured %s to memory", rn)
+ }
+ }()
}
var data []byte
if data, err = f.Cure(c.ctx); err != nil {
@@ -935,7 +941,18 @@ func (c *Cache) Cure(a Artifact) (
}
if c.msg.IsVerbose() {
- c.msg.Verbosef("curing %s...", reportNameIdent(a, id))
+ rn := reportNameIdent(a, id)
+ c.msg.Verbosef("curing %s...", rn)
+ defer func() {
+ if err != nil {
+ return
+ }
+ if checksums != "" {
+ c.msg.Verbosef("cured %s checksum %s", rn, checksums)
+ } else {
+ c.msg.Verbosef("cured %s", rn)
+ }
+ }()
}
// cure File outside type switch to skip TContext initialisation