From 9ba00c3d6f945bf802e023b1e986a4e39fb8d257 Mon Sep 17 00:00:00 2001 From: Noor Malik Date: Thu, 13 Oct 2022 22:46:01 +0200 Subject: [PATCH] Add debug --- main.go | 4 ++-- secrets_controller.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index a8359b3..4798a5b 100644 --- a/main.go +++ b/main.go @@ -153,11 +153,11 @@ func handleSigterm(cancelFunc func()) { // serve the HTTP endpoint for livenessProbe func serveHealthz(address string) { - println("Endpoint is live!") - // Start the HTTP server err := http.ListenAndServe(address, nil) if err != nil { log.Error(err) + } else { + log.Debug("Health server is running.") } } diff --git a/secrets_controller.go b/secrets_controller.go index b5812d2..ad35b46 100644 --- a/secrets_controller.go +++ b/secrets_controller.go @@ -116,7 +116,6 @@ func (c *SecretsController) getCreds(role string) (map[string][]byte, error) { // Run runs the secret controller loop. This will refresh secrets with AWS IAM // roles. func (c *SecretsController) Run(ctx context.Context) { - println("Controller is running!") // Defining the liveness check var nextRefresh time.Time