From a7728bbb6fda284f3daf5c993610aa00070f817c Mon Sep 17 00:00:00 2001 From: orvice Date: Wed, 16 Aug 2023 11:56:23 +0800 Subject: [PATCH] log --- dns/cloudflare.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dns/cloudflare.go b/dns/cloudflare.go index 46ce1a8..3b62f2d 100644 --- a/dns/cloudflare.go +++ b/dns/cloudflare.go @@ -91,6 +91,11 @@ func (c *CloudFlare) UpdateIP(ctx context.Context, domain, ip string) error { Name: r.Name, Content: ip, }) + + slog.Info("update dns record", + "record_id", r.ID, + "domain", domain, "old_ip", oldIP, "new_ip", ip) + if err != nil { return err }