also print success log

This commit is contained in:
Tobias Trabelsi 2023-10-15 22:19:25 +02:00
parent b72c1d1edb
commit 9f4e37adec
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
1 changed files with 3 additions and 0 deletions

View File

@ -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
}