1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-18 16:39:07 +00:00

Add context to the remotedialer ping logger - steve side.

This commit is contained in:
Eric Promislow
2025-03-28 10:27:05 -07:00
parent 83cf2ac76f
commit 87fe0a1027

View File

@@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"net"
"net/http"
"strings"
@@ -72,6 +73,7 @@ func serve(ctx context.Context, dialer websocket.Dialer, url string, headers htt
return err
}
defer conn.Close()
ctx = context.WithValue(ctx, remotedialer.ContextKeyCaller, fmt.Sprintf("steve server: url:%s", url))
go func() {
<-ctx.Done()