Skip to content

Commit

Permalink
removes commented metrics call
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclion committed Oct 20, 2023
1 parent 66bbde2 commit 011d417
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dependency/vault_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,14 @@ 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
case renewal := <-renewer.RenewCh():
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
}
}
Expand Down

0 comments on commit 011d417

Please sign in to comment.