Skip to content

Commit 9ba00c3

Browse files
author
Noor Malik
committed
Add debug
1 parent 9023d23 commit 9ba00c3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ func handleSigterm(cancelFunc func()) {
153153

154154
// serve the HTTP endpoint for livenessProbe
155155
func serveHealthz(address string) {
156-
println("Endpoint is live!")
157-
158156
// Start the HTTP server
159157
err := http.ListenAndServe(address, nil)
160158
if err != nil {
161159
log.Error(err)
160+
} else {
161+
log.Debug("Health server is running.")
162162
}
163163
}

secrets_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ func (c *SecretsController) getCreds(role string) (map[string][]byte, error) {
116116
// Run runs the secret controller loop. This will refresh secrets with AWS IAM
117117
// roles.
118118
func (c *SecretsController) Run(ctx context.Context) {
119-
println("Controller is running!")
120119
// Defining the liveness check
121120
var nextRefresh time.Time
122121

0 commit comments

Comments
 (0)