From aa0a63a29565709149e95f6fcfa56de3771a9741 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Mon, 7 Apr 2025 09:32:52 -0700 Subject: [PATCH] fix(agent): log correct error variable in createTailnet (#17283) --- agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 3c6a3c1961..cf784a2702 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1408,7 +1408,7 @@ func (a *agent) createTailnet( if rPTYServeErr != nil && a.gracefulCtx.Err() == nil && !strings.Contains(rPTYServeErr.Error(), "use of closed network connection") { - a.logger.Error(ctx, "error serving reconnecting PTY", slog.Error(err)) + a.logger.Error(ctx, "error serving reconnecting PTY", slog.Error(rPTYServeErr)) } }); err != nil { return nil, err