Skip to content

Commit 2bbe8bb

Browse files
committed
remove debug logs
1 parent 947ec55 commit 2bbe8bb

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

packages/next/src/server/app-render/app-render.tsx

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,15 +2223,10 @@ async function renderToStream(
22232223
const hadCacheMissInStaticStagePromise =
22242224
createPromiseWithResolvers<boolean>()
22252225

2226-
console.debug(`renderToStream (1) :: attempting render`)
2227-
22282226
const reactServerStreamPromise = renderInStages(
22292227
initialRenderServerDebugChannel?.channel,
22302228
initialRenderReactController.signal,
22312229
() => {
2232-
console.debug(
2233-
`renderToStream (1) :: static task finished with ${cacheSignal['count']} caches pending`
2234-
)
22352230
// If all cache reads initiated in the static stage have completed,
22362231
// then either we don't need to fill any caches, or all of them are warm.
22372232
// On the other hand, if we have pending cache reads, then we had a cache miss.
@@ -2275,23 +2270,8 @@ async function renderToStream(
22752270
// To avoid this, we await `cacheReady` repeatedly with an extra delay to let React try render new content
22762271
// (and potentially discover more caches).
22772272
await cacheSignal.cacheReadyInRender()
2278-
console.debug(`renderToStream (1) :: cacheReady`)
22792273
initialRenderReactController.abort()
22802274

2281-
console.debug(
2282-
'='.repeat(80) +
2283-
'\n' +
2284-
`renderToStream :: restarting render` +
2285-
(`\n cache entries: ${prerenderResumeDataCache.cache.size}\n` +
2286-
[...prerenderResumeDataCache.cache.keys()]
2287-
.map((k) => ' - ' + k)
2288-
.join('\n') +
2289-
`\n fetch entries: ${prerenderResumeDataCache.fetch.size}\n` +
2290-
[...prerenderResumeDataCache.fetch.keys()]
2291-
.map((k) => ' - ' + k)
2292-
.join('\n') +
2293-
'\n')
2294-
)
22952275
// The initial render acted as a prospective render.
22962276
// Now, we need to clear the state we've set up for it and do a regular render.
22972277
requestStore.prerenderResumeDataCache = null
@@ -2305,11 +2285,11 @@ async function renderToStream(
23052285
const finalRenderServerDebugChannel = debugChannel?.serverSide
23062286

23072287
reactServerResult = new ReactServerResult(
2308-
await renderInStages(finalRenderServerDebugChannel, undefined, () => {
2309-
console.debug(
2310-
`renderToStream (2) :: end of static stage after restart. ${cacheSignal['count']} caches pending`
2311-
)
2312-
})
2288+
await renderInStages(
2289+
finalRenderServerDebugChannel,
2290+
undefined,
2291+
undefined
2292+
)
23132293
)
23142294
}
23152295

0 commit comments

Comments
 (0)