Skip to content

Commit bb12fcf

Browse files
committed
test
1 parent 2cbeda3 commit bb12fcf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

internal/watcher/health/health_watcher_service.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,22 @@ func (hw *HealthWatcherService) compareHealth(currentHealth map[string]*mpi.Inst
202202
defer hw.healthWatcherMutex.Unlock()
203203

204204
if len(currentHealth) != len(hw.cache) {
205+
for _, i := range currentHealth {
206+
slog.Info("Health of Instance Current")
207+
slog.Info("Instance ID", "", i.GetInstanceId())
208+
slog.Info("Instance Status", "", i.GetInstanceHealthStatus())
209+
slog.Info("Instance Description", "", i.GetDescription())
210+
}
211+
212+
slog.Info("======================")
213+
for _, i := range currentHealth {
214+
slog.Info("Health of Instance New")
215+
slog.Info("Instance ID", "", i.GetInstanceId())
216+
slog.Info("Instance Status", "", i.GetInstanceHealthStatus())
217+
slog.Info("Instance Description", "", i.GetDescription())
218+
}
205219
slog.Info("Len of cache different in health watcher cache")
220+
206221
return true
207222
}
208223

0 commit comments

Comments
 (0)