Skip to content

Commit

Permalink
add newlines for consistency in logging (#1501)
Browse files Browse the repository at this point in the history
Signed-off-by: Meredith Lancaster <malancas@github.com>
  • Loading branch information
malancas committed Jun 20, 2024
1 parent e513c66 commit d8fee02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/webhook/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func ValidatePolicy(ctx context.Context, namespace string, ref name.Reference, c
results := make(chan retChannelType, len(cip.Authorities))
for _, authority := range cip.Authorities {
authority := authority // due to gofunc
logging.FromContext(ctx).Debugf("Checking Authority: %s", authority.Name)
logging.FromContext(ctx).Debugf("Checking Authority: %s\n", authority.Name)

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

sigID, err := signatureID(att.Signature)
if err != nil {
Expand Down Expand Up @@ -937,7 +937,7 @@ func ValidatePolicyAttestationsForAuthority(ctx context.Context, ref name.Refere
}
}

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

0 comments on commit d8fee02

Please sign in to comment.