improve logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-18 11:25:13 +11:00
parent 334b0b8ab6
commit e355f5f6bc

View File

@@ -300,7 +300,7 @@ func main() {
haUnreachableEvents = append(haUnreachableEvents, h)
log.Printf("Recording host %s unreachable HA status event at %s\n", h.Host.Name, h.CreatedTime.In(location).Format(time.ANSIC))
} else {
log.Printf("Host %s HA failure time at %s was before %s or after %s\n", h.Host.Name, haFailedTime.Format(time.ANSIC),
log.Printf("Host %s HA failure time at %s was before %s or after %s, excluding this ha unreachable event\n", h.Host.Name, haFailedTime.Format(time.ANSIC),
unreachableStartComparison, unreachableEndComparison)
}