diff --git a/docs/storage/layerwriter.go b/docs/storage/layerwriter.go index fe1185978..0a42aa40b 100644 --- a/docs/storage/layerwriter.go +++ b/docs/storage/layerwriter.go @@ -345,6 +345,8 @@ func (lw *layerWriter) validateLayer(dgst digest.Digest) (digest.Digest, error) } if !verified { + ctxu.GetLoggerWithField(lw.layerStore.repository.ctx, "canonical", dgst). + Errorf("canonical digest does match provided digest") return "", distribution.ErrLayerInvalidDigest{ Digest: dgst, Reason: fmt.Errorf("content does not match digest"),