From 0e25235d16f41b525c4ce7b0f0a852c7e4815c44 Mon Sep 17 00:00:00 2001 From: adeatcu-ionos Date: Mon, 16 Jun 2025 09:50:06 +0300 Subject: [PATCH 1/2] debug: test if 'Heartbeat' is working properly --- provider.go | 1 + 1 file changed, 1 insertion(+) diff --git a/provider.go b/provider.go index 50ab462..866bfa4 100644 --- a/provider.go +++ b/provider.go @@ -191,6 +191,7 @@ func (i *InstanceGroup) Decrease(ctx context.Context, instances []string) ([]str // Heartbeat implements provider.InstanceGroup. func (i *InstanceGroup) Heartbeat(ctx context.Context, instance string) error { + i.log.Info("================== HEARTBEAT ==================") _, apiResponse, err := i.computeClient.ServersApi.DatacentersServersFindById(ctx, i.DatacenterId, instance).Execute() if err != nil { if apiResponse.HttpNotFound() { From c2b3e72644336a2c1982924de4a32535715700b1 Mon Sep 17 00:00:00 2001 From: adeatcu-ionos Date: Mon, 16 Jun 2025 10:17:21 +0300 Subject: [PATCH 2/2] refactor: Remove debug print from 'Heartbeat' method --- provider.go | 1 - 1 file changed, 1 deletion(-) diff --git a/provider.go b/provider.go index 866bfa4..50ab462 100644 --- a/provider.go +++ b/provider.go @@ -191,7 +191,6 @@ func (i *InstanceGroup) Decrease(ctx context.Context, instances []string) ([]str // Heartbeat implements provider.InstanceGroup. func (i *InstanceGroup) Heartbeat(ctx context.Context, instance string) error { - i.log.Info("================== HEARTBEAT ==================") _, apiResponse, err := i.computeClient.ServersApi.DatacentersServersFindById(ctx, i.DatacenterId, instance).Execute() if err != nil { if apiResponse.HttpNotFound() {