also print success log
This commit is contained in:
parent
b72c1d1edb
commit
9f4e37adec
@ -84,5 +84,8 @@ func AttachFloatingIpToNode(cfg *Config, server hcloud.Server) error {
|
|||||||
"Caller": "AttachFloatingIpToNode",
|
"Caller": "AttachFloatingIpToNode",
|
||||||
}).Error(fmt.Sprintf("Error response while attaching floating ip: %s", err.Error()))
|
}).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
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user