mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Move db cert renewal message to debug log (#25097)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user