Skip to content

Commit

Permalink
Change logs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Dec 6, 2021
1 parent 9337a58 commit 3f433e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/build/gobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl
// Make typecheck below fail
binaryLayer = nil
} else {
log.Printf("Cached: %s for %s", ref.Path(), platformToString(*platform))
log.Printf("Cache hit: %s for %s", ref.Path(), platformToString(*platform))
}
}

Expand All @@ -745,7 +745,9 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl
}
if os.Getenv("KO_CACHE_META") != "" {
if err := g.cacheLayerMeta(ctx, file, binaryLayer); err != nil {
log.Printf("failed to cache metadata for %s: %v", refStr, err)
log.Printf("failed to cache metadata for %s: %v", ref.Path(), err)
} else {
log.Printf("Cached %s for %s under %s", ref.Path(), platformToString(*platform), filepath.Dir(file))
}
}
}
Expand Down

0 comments on commit 3f433e7

Please sign in to comment.