Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit d8fee02

Browse files
authored
add newlines for consistency in logging (#1501)
Signed-off-by: Meredith Lancaster <malancas@github.com>
1 parent e513c66 commit d8fee02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/webhook/validator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ func ValidatePolicy(ctx context.Context, namespace string, ref name.Reference, c
496496
results := make(chan retChannelType, len(cip.Authorities))
497497
for _, authority := range cip.Authorities {
498498
authority := authority // due to gofunc
499-
logging.FromContext(ctx).Debugf("Checking Authority: %s", authority.Name)
499+
logging.FromContext(ctx).Debugf("Checking Authority: %s\n", authority.Name)
500500

501501
wg.Add(1)
502502
go func() {
@@ -723,7 +723,7 @@ type attestation struct {
723723
func attestationToPolicyAttestations(ctx context.Context, atts []attestation) []PolicyAttestation {
724724
ret := make([]PolicyAttestation, 0, len(atts))
725725
for _, att := range atts {
726-
logging.FromContext(ctx).Debugf("Converting attestation %+v", att)
726+
logging.FromContext(ctx).Debugf("Converting attestation with digest %s\n", att.Digest)
727727

728728
sigID, err := signatureID(att.Signature)
729729
if err != nil {
@@ -937,7 +937,7 @@ func ValidatePolicyAttestationsForAuthority(ctx context.Context, ref name.Refere
937937
}
938938
}
939939

940-
logging.FromContext(ctx).Debugf("found verified attestation with digest: %s", attDigest.String())
940+
logging.FromContext(ctx).Debugf("found verified attestation with digest: %s\n", attDigest.String())
941941
// Ok, so this passed aok, jot it down to our result set as
942942
// verified attestation with the predicate type match
943943
checkedAttestations = append(checkedAttestations, attestation{

0 commit comments

Comments
 (0)