cleanup and refactor health service
All checks were successful
Gitea Docker Build Demo / Test (push) Successful in 1m2s
Gitea Docker Build Demo / Build_Image (push) Successful in 1m22s

This commit is contained in:
2025-10-07 11:13:15 +02:00
parent 60844be81b
commit d3682557b1
7 changed files with 42 additions and 32 deletions

View File

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