cleanup and refactor health service
This commit is contained in:
@@ -25,7 +25,7 @@ func GetAllNodes(cfg *Config) ([]*hcloud.Server, error) {
|
||||
for _, instance := range servers {
|
||||
log.WithFields(log.Fields{
|
||||
"Caller": "GetAllNodes",
|
||||
}).Info(fmt.Sprintf("Found server: %s", instance.Name))
|
||||
}).Debugf("Found server: %s", instance.Name)
|
||||
}
|
||||
|
||||
return servers, nil
|
||||
@@ -39,7 +39,7 @@ func GetAllIps(servers []*hcloud.Server) ([]string, error) {
|
||||
}
|
||||
log.WithFields(log.Fields{
|
||||
"Caller": "GetAllIps",
|
||||
}).Info(fmt.Sprintf("Found IP: %s", instance.PublicNet.IPv4.IP.String()))
|
||||
}).Debugf("Found IP: %s", instance.PublicNet.IPv4.IP.String())
|
||||
ips[i] = instance.PublicNet.IPv4.IP.String()
|
||||
}
|
||||
return ips, nil
|
||||
|
Reference in New Issue
Block a user