From f9fdf783c619a8c5d1848ed64db2f4dac2a79ca3 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Sat, 16 Nov 2024 00:46:31 -0500 Subject: [PATCH] add hb log --- create-resource.sh | 8 ++++++++ pkg/agent/agent.go | 1 + 2 files changed, 9 insertions(+) create mode 100644 create-resource.sh diff --git a/create-resource.sh b/create-resource.sh new file mode 100644 index 0000000..3532b5a --- /dev/null +++ b/create-resource.sh @@ -0,0 +1,8 @@ +go run cmd/ctrlc/ctrlc.go api create resource \ + --workspace "569de0fb-6173-45b7-bb84-2f01b5e08075" \ + --name "test" \ + --identifier "test" \ + --kind "test" \ + --version "v1.0.0" \ + --config test.value=idk \ + --var "test=test" diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 6e9359d..8cf1f33 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -187,6 +187,7 @@ func (a *Agent) heartbeatRoutine() { for { select { case <-ticker.C: + log.Printf("Sending heartbeat to proxy") heartbeat := payloads.AgentHeartbeatJson{ Type: payloads.AgentHeartbeatJsonTypeClientHeartbeat, Timestamp: []time.Time{time.Now()}[0],