Move db cert renewal message to debug log (#25097)

This commit is contained in:
Gavin Frazar
2023-04-26 16:41:36 +00:00
committed by GitHub
parent e1d23053d0
commit 704a104397
+1 -2
View File
@@ -123,8 +123,7 @@ func (c *DBCertChecker) renewCerts(ctx context.Context, lp *alpnproxy.LocalProxy
return trace.Wrap(err)
}
certTTL := leaf.NotAfter.Sub(c.clock.Now()).Round(time.Minute)
fmt.Fprintf(c.tc.Stderr,
"Database certificate renewed: valid until %s [valid for %v]\n",
log.Debugf("Database certificate renewed: valid until %s [valid for %v]",
leaf.NotAfter.Format(time.RFC3339), certTTL)
// reduce per-handshake processing by setting the parsed leaf.
tlsCert.Leaf = leaf