Browse Source

ipn/ipnlocal: log cert renewal failures (#18246)

Updates#cleanup

Signed-off-by: Irbe Krumina <[email protected]>
Irbe Krumina 2 months ago
parent
commit
b73fb467e4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      ipn/ipnlocal/cert.go

+ 5 - 1
ipn/ipnlocal/cert.go

@@ -144,7 +144,11 @@ func (b *LocalBackend) GetCertPEMWithValidity(ctx context.Context, domain string
 		if minValidity == 0 {
 			logf("starting async renewal")
 			// Start renewal in the background, return current valid cert.
-			b.goTracker.Go(func() { getCertPEM(context.Background(), b, cs, logf, traceACME, domain, now, minValidity) })
+			b.goTracker.Go(func() {
+				if _, err := getCertPEM(context.Background(), b, cs, logf, traceACME, domain, now, minValidity); err != nil {
+					logf("async renewal failed: getCertPem: %v", err)
+				}
+			})
 			return pair, nil
 		}
 		// If the caller requested a specific validity duration, fall through