From 1936c114d52ccdeb52b47823cbdc1341fb3c2a62 Mon Sep 17 00:00:00 2001 From: Haifeng He Date: Tue, 12 May 2026 09:33:32 -0700 Subject: [PATCH] Fix lifetime.Err format verb in simpleGRPCServer.Describe Use %v instead of %e for the error value. %e is Go's floating-point scientific-notation verb, which produced the placeholder "%!e()" in log output whenever the lifetime context had not been cancelled. %v is the default verb for any value and is nil-safe for errors: it prints the result of err.Error() when non-nil and "" otherwise. Co-Authored-By: Claude Opus 4.7 (1M context) --- proxy/cluster_connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/cluster_connection.go b/proxy/cluster_connection.go index 425dfca..8d1314c 100644 --- a/proxy/cluster_connection.go +++ b/proxy/cluster_connection.go @@ -465,7 +465,7 @@ func (s *simpleGRPCServer) CanMakeCalls() bool { return true } func (s *simpleGRPCServer) Describe() string { - return fmt.Sprintf("[simpleGRPCServer %s listening on %s. lifetime.Err: %e]", s.name, s.listener.Addr(), s.lifetime.Err()) + return fmt.Sprintf("[simpleGRPCServer %s listening on %s. lifetime.Err: %v]", s.name, s.listener.Addr(), s.lifetime.Err()) } func (s *simpleGRPCServer) Name() string { return s.name