Skip to content

Commit

Permalink
debug: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 21, 2024
1 parent 128277c commit 85f9007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/dns/nicru/nicru.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/nicru/internal"
)
Expand Down Expand Up @@ -227,8 +228,11 @@ func (p *DNSProvider) checkZoneUUID(ctx context.Context, authZone string) error
return fmt.Errorf("unable to fetch dns zones: %w", err)
}

log.Infof("zones count: %d", len(zones))

var zoneUUID string
for _, zone := range zones {
log.Infof("zone.Name=%s, authZone=%s", zone.Name, authZone)
if zone.Name == authZone {
zoneUUID = zone.ID
}
Expand Down

0 comments on commit 85f9007

Please sign in to comment.