Skip to content

Commit 02bcdff

Browse files
committed
Fix missing endpoint in http request logs
1 parent 4a723e8 commit 02bcdff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func SendHTTPRPCRequest(ctx context.Context, p *Provider, req *rpc.BatchRequest)
124124
func IncomingHttpHandler(ctx context.Context, endpoint *Endpoint, w http.ResponseWriter, r *http.Request, timing *servertiming.Header) {
125125
start := time.Now()
126126

127-
log := slog.With("ip", r.RemoteAddr, "transport", "http", "provider", endpoint.Name)
127+
log := slog.With("ip", r.RemoteAddr, "transport", "http", "endpoint", endpoint.Name)
128128

129129
if !strings.Contains(r.Header.Get("Content-Type"), "application/json") {
130130
log.Error("http: close connection: invalid content type")

0 commit comments

Comments
 (0)