Skip to content

Commit e665097

Browse files
committed
add debug logging
1 parent 9e0ffef commit e665097

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ func (c *ibmCloudCisProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error
5555
return err
5656
}
5757

58+
log.Debug(fmt.Sprintf("presenting challenge %s -> %s (%s)", ch.DNSName, ch.Key, ch.ResolvedFQDN))
59+
5860
zonesApi := c.ibmCloudCisApi.Zones()
5961

6062
for _, crn := range cfg.IbmCloudCisCrns {
@@ -65,6 +67,7 @@ func (c *ibmCloudCisProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error
6567
}
6668

6769
longestMatchZone := findLongestMatchingZone(myZones, ch.ResolvedFQDN)
70+
log.Debug(fmt.Sprintf("Longest matching zone: %s (id: %s)", longestMatchZone.Name, longestMatchZone.Id))
6871
if longestMatchZone != nil {
6972
if err := c.createDNSChallengeRecord(crn, longestMatchZone.Id, ch); err != nil {
7073
return err

0 commit comments

Comments
 (0)