Skip to content

Commit 17b4135

Browse files
committed
image/docker: Log at debug level if we fail to find size for GetBlob
This helped me debug bootc-dev/bootc#1567 Signed-off-by: Colin Walters <[email protected]>
1 parent 3af9abd commit 17b4135

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

image/docker/docker_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ func (c *dockerClient) getBlob(ctx context.Context, ref dockerReference, info ty
10661066
cache.RecordKnownLocation(ref.Transport(), bicTransportScope(ref), info.Digest, newBICLocationReference(ref))
10671067
blobSize, err := getBlobSize(res)
10681068
if err != nil {
1069+
// See above, we don't guarantee returning a size
1070+
logrus.Debugf("failed to get blob size: %v", err)
10691071
blobSize = -1
10701072
}
10711073

0 commit comments

Comments
 (0)