From 9f4e37adec2041f9de617330c7e9039b1eed4ee3 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sun, 15 Oct 2023 22:19:25 +0200 Subject: [PATCH] also print success log --- internal/hetzner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/hetzner.go b/internal/hetzner.go index c67e5d4..4c51c04 100644 --- a/internal/hetzner.go +++ b/internal/hetzner.go @@ -84,5 +84,8 @@ func AttachFloatingIpToNode(cfg *Config, server hcloud.Server) error { "Caller": "AttachFloatingIpToNode", }).Error(fmt.Sprintf("Error response while attaching floating ip: %s", err.Error())) } + log.WithFields(log.Fields{ + "Caller": "AttachFloatingIpToNode", + }).Info(fmt.Sprintf("Attached floating ip %s to node %s", cfg.FloatingIPName, server.Name)) return err }