Unverified Commit c4b5b810 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

Fix fetch logging in edge runtime (#67952)

Fetch logging in edge runtime was originally implemented in #56108, and
then was accidentally broken in #62946.

This restores the previous behaviour, and also fixes the wrong test
config, which prevented us from catching the regression.

fixes #50439
fixes #67835
parent 0c3b063d
...@@ -162,6 +162,7 @@ export function getRender({ ...@@ -162,6 +162,7 @@ export function getRender({
handler(extendedReq, extendedRes) handler(extendedReq, extendedRes)
const result = await extendedRes.toResponse() const result = await extendedRes.toResponse()
request.fetchMetrics = extendedReq.fetchMetrics
if (event?.waitUntil) { if (event?.waitUntil) {
// TODO(after): // TODO(after):
......
...@@ -304,7 +304,7 @@ describe('app-dir - logging', () => { ...@@ -304,7 +304,7 @@ describe('app-dir - logging', () => {
await next.start() await next.start()
}) })
runTests({ withFetchesLogging: false }) runTests({ withFetchesLogging: true, withFullUrlFetches: true })
}) })
describe('with default logging', () => { describe('with default logging', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment