Skip to content

Commit f98baf8

Browse files
authored
Merge pull request #52 from aws/fix/RolesAnywhere-4825
fix/RolesAnywhere-4825: Change debug logs to use log.Print*
2 parents 3e1345b + d5db748 commit f98baf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws_signing_helper/darwin_cert_store_signer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func GetMatchingCertsAndIdentity(certIdentifier CertIdentifier) (C.SecIdentityRe
8282
curCert, err := exportCertRef(curCertRef)
8383
if err != nil {
8484
if Debug {
85-
fmt.Fprintf(os.Stderr, "unable to parse certificate with error (%s) - skipping\n", err)
85+
log.Printf("unable to parse certificate with error (%s) - skipping\n", err)
8686
}
8787
goto nextIteration
8888
}

aws_signing_helper/windows_cert_store_signer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func GetMatchingCertsAndChain(certIdentifier CertIdentifier) (store windows.Hand
157157
x509CertChain[j], err = exportCertContext(curCertCtx)
158158
if err != nil {
159159
if Debug {
160-
fmt.Fprintf(os.Stderr, "unable to parse certificate with error (%s) - skipping\n", err)
160+
log.Printf("unable to parse certificate with error (%s) - skipping\n", err)
161161
}
162162
goto nextIteration
163163
}

0 commit comments

Comments
 (0)