@@ -97,7 +97,7 @@ async function renderPage<
97
97
}
98
98
99
99
const httpRequestId = getRequestId ( )
100
- const urlToShowToUser = pc . bold ( pageContextInit . urlOriginal )
100
+ const urlToShowToUser = pageContextInit . urlOriginal
101
101
logHttpRequest ( urlToShowToUser , httpRequestId )
102
102
globalObject . pendingRequestsCount ++
103
103
@@ -118,7 +118,7 @@ async function renderPageAndPrepare(
118
118
) : Promise < PageContextAfterRender > {
119
119
// Invalid config
120
120
const handleInvalidConfig = ( ) => {
121
- logRuntimeInfo ?.( pc . red ( pc . bold ( "Couldn't load configuration: see error above." ) ) , httpRequestId , 'error' )
121
+ logRuntimeInfo ?.( pc . bold ( pc . red ( "Couldn't load configuration: see error above." ) ) , httpRequestId , 'error' )
122
122
const pageContextHttpReponseNull = getPageContextHttpResponseNull ( pageContextInit )
123
123
return pageContextHttpReponseNull
124
124
}
@@ -300,7 +300,7 @@ async function renderPageAlreadyPrepared(
300
300
301
301
function logHttpRequest ( urlToShowToUser : string , httpRequestId : number ) {
302
302
const clearErrors = globalObject . pendingRequestsCount === 0
303
- logRuntimeInfo ?.( `HTTP request: ${ urlToShowToUser } ` , httpRequestId , 'info' , clearErrors )
303
+ logRuntimeInfo ?.( `HTTP request: ${ pc . bold ( urlToShowToUser ) } ` , httpRequestId , 'info' , clearErrors )
304
304
}
305
305
function logHttpResponse ( urlToShowToUser : string , httpRequestId : number , pageContextReturn : PageContextAfterRender ) {
306
306
const statusCode = pageContextReturn . httpResponse ?. statusCode ?? null
@@ -317,10 +317,10 @@ function logHttpResponse(urlToShowToUser: string, httpRequestId: number, pageCon
317
317
. find ( ( header ) => header [ 0 ] === 'Location' )
318
318
assert ( headerRedirect )
319
319
const urlRedirect = headerRedirect [ 1 ]
320
- urlToShowToUser = pc . bold ( urlRedirect )
320
+ urlToShowToUser = urlRedirect
321
321
}
322
322
logRuntimeInfo ?.(
323
- `HTTP ${ type } ${ urlToShowToUser } ${ color ( statusCode ?? 'ERR' ) } ` ,
323
+ `HTTP ${ type } ${ pc . bold ( urlToShowToUser ) } ${ color ( statusCode ?? 'ERR' ) } ` ,
324
324
httpRequestId ,
325
325
isNominal ? 'info' : 'error'
326
326
)
@@ -475,7 +475,7 @@ function normalizeUrl(pageContextInit: { urlOriginal: string }, httpRequestId: n
475
475
const urlNormalized = normalizeUrlPathname ( urlOriginal , trailingSlash )
476
476
if ( ! urlNormalized ) return null
477
477
logRuntimeInfo ?.(
478
- `URL normalized from ${ pc . bold ( urlOriginal ) } to ${ pc . bold (
478
+ `URL normalized from ${ pc . cyan ( urlOriginal ) } to ${ pc . cyan (
479
479
urlNormalized
480
480
) } (https://vite-plugin-ssr.com/url-normalization)`,
481
481
httpRequestId ,
0 commit comments