diff --git a/dependency/vault_common.go b/dependency/vault_common.go index 553d33562..b28a98214 100644 --- a/dependency/vault_common.go +++ b/dependency/vault_common.go @@ -96,9 +96,6 @@ func renewSecret(clients *ClientSet, d renewer) error { case err := <-renewer.DoneCh(): if err != nil { log.Printf("[WARN] %s: failed to renew: %s", d, err) - //d.recordCounter("status", "stopped") - } else { - //d.recordCounter("status", "expired") } log.Printf("[WARN] %s: renewer done (maybe the lease expired)", d) return nil @@ -106,9 +103,7 @@ func renewSecret(clients *ClientSet, d renewer) error { log.Printf("[TRACE] %s: successfully renewed", d) printVaultWarnings(d, renewal.Secret.Warnings) updateSecret(secret, renewal.Secret) - //d.recordCounter("status", "renewed") case <-d.stopChan(): - //d.recordCounter("status", "stopped") return ErrStopped } }