Skip to content

Commit

Permalink
improve logging by printing ids too, not just values
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Dec 11, 2024
1 parent 444d5bc commit 64e5014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/mikrotik/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type DNSRecord struct {

// NewDNSRecord converts an ExternalDNS Endpoint to a Mikrotik DNSRecord
func NewDNSRecord(endpoint *endpoint.Endpoint) (*DNSRecord, error) {
log.Debugf("Converting ExternalDNS endpoint to MikrotikDNS: %v", endpoint)
log.Debugf("Converting ExternalDNS endpoint to MikrotikDNS: %+v", endpoint)

// Sanity checks -> Fields are not empty and if set, they are set correctly
if endpoint.DNSName == "" {
Expand Down Expand Up @@ -166,7 +166,7 @@ func NewDNSRecord(endpoint *endpoint.Endpoint) (*DNSRecord, error) {

// toExternalDNSEndpoint converts a Mikrotik DNSRecord to an ExternalDNS Endpoint
func (r *DNSRecord) toExternalDNSEndpoint() (*endpoint.Endpoint, error) {
log.Debugf("Converting MikrotikDNS record to ExternalDNS: %v", r)
log.Debugf("Converting MikrotikDNS record to ExternalDNS: %+v", r)

// ============================================================================================
// Sanity checks
Expand Down

0 comments on commit 64e5014

Please sign in to comment.