From 0d206ffe68a4e8894bed85f89f1e1b26ea3baab9 Mon Sep 17 00:00:00 2001 From: Irbe Krumina Date: Thu, 18 Dec 2025 10:06:03 +0000 Subject: [PATCH] ipn/ipnlocal: log cert renewal failures (#18246) (#18247) Updates#cleanup (cherry picked from commit b73fb467e45dc501680200e667c84753120a8bbb) Signed-off-by: Irbe Krumina --- ipn/ipnlocal/cert.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipn/ipnlocal/cert.go b/ipn/ipnlocal/cert.go index d7133d25e..a78fa5247 100644 --- a/ipn/ipnlocal/cert.go +++ b/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