diff --git a/docs/docs/api/Debug.md b/docs/docs/api/Debug.md index f7a8864b099..69c7d7b4fee 100644 --- a/docs/docs/api/Debug.md +++ b/docs/docs/api/Debug.md @@ -14,14 +14,14 @@ NODE_DEBUG=undici node script.js UNDICI 16241: connecting to nodejs.org using https:h1 UNDICI 16241: connecting to nodejs.org using https:h1 UNDICI 16241: connected to nodejs.org using https:h1 -UNDICI 16241: sending request to GET https://nodejs.org// -UNDICI 16241: received response to GET https://nodejs.org// - HTTP 307 +UNDICI 16241: sending request to GET https://nodejs.org/ +UNDICI 16241: received response to GET https://nodejs.org/ - HTTP 307 UNDICI 16241: connecting to nodejs.org using https:h1 -UNDICI 16241: trailers received from GET https://nodejs.org// +UNDICI 16241: trailers received from GET https://nodejs.org/ UNDICI 16241: connected to nodejs.org using https:h1 -UNDICI 16241: sending request to GET https://nodejs.org//en -UNDICI 16241: received response to GET https://nodejs.org//en - HTTP 200 -UNDICI 16241: trailers received from GET https://nodejs.org//en +UNDICI 16241: sending request to GET https://nodejs.org/en +UNDICI 16241: received response to GET https://nodejs.org/en - HTTP 200 +UNDICI 16241: trailers received from GET https://nodejs.org/en ``` ## `fetch` @@ -36,14 +36,14 @@ NODE_DEBUG=fetch node script.js FETCH 16241: connecting to nodejs.org using https:h1 FETCH 16241: connecting to nodejs.org using https:h1 FETCH 16241: connected to nodejs.org using https:h1 -FETCH 16241: sending request to GET https://nodejs.org// -FETCH 16241: received response to GET https://nodejs.org// - HTTP 307 +FETCH 16241: sending request to GET https://nodejs.org/ +FETCH 16241: received response to GET https://nodejs.org/ - HTTP 307 FETCH 16241: connecting to nodejs.org using https:h1 -FETCH 16241: trailers received from GET https://nodejs.org// +FETCH 16241: trailers received from GET https://nodejs.org/ FETCH 16241: connected to nodejs.org using https:h1 -FETCH 16241: sending request to GET https://nodejs.org//en -FETCH 16241: received response to GET https://nodejs.org//en - HTTP 200 -FETCH 16241: trailers received from GET https://nodejs.org//en +FETCH 16241: sending request to GET https://nodejs.org/en +FETCH 16241: received response to GET https://nodejs.org/en - HTTP 200 +FETCH 16241: trailers received from GET https://nodejs.org/en ``` ## `websocket` @@ -57,6 +57,6 @@ NODE_DEBUG=websocket node script.js WEBSOCKET 18309: connecting to echo.websocket.org using https:h1 WEBSOCKET 18309: connected to echo.websocket.org using https:h1 -WEBSOCKET 18309: sending request to GET https://echo.websocket.org// +WEBSOCKET 18309: sending request to GET https://echo.websocket.org/ WEBSOCKET 18309: connection opened ``` diff --git a/lib/core/diagnostics.js b/lib/core/diagnostics.js index 44c168e6e79..49e8f4ec0fa 100644 --- a/lib/core/diagnostics.js +++ b/lib/core/diagnostics.js @@ -85,7 +85,7 @@ function trackClientEvents (debugLog = undiciDebugLog) { const { request: { method, path, origin } } = evt - debugLog('sending request to %s %s/%s', method, origin, path) + debugLog('sending request to %s %s%s', method, origin, path) }) } @@ -105,7 +105,7 @@ function trackRequestEvents (debugLog = undiciDebugLog) { response: { statusCode } } = evt debugLog( - 'received response to %s %s/%s - HTTP %d', + 'received response to %s %s%s - HTTP %d', method, origin, path, @@ -118,7 +118,7 @@ function trackRequestEvents (debugLog = undiciDebugLog) { const { request: { method, path, origin } } = evt - debugLog('trailers received from %s %s/%s', method, origin, path) + debugLog('trailers received from %s %s%s', method, origin, path) }) diagnosticsChannel.subscribe('undici:request:error', @@ -128,7 +128,7 @@ function trackRequestEvents (debugLog = undiciDebugLog) { error } = evt debugLog( - 'request to %s %s/%s errored - %s', + 'request to %s %s%s errored - %s', method, origin, path,