Skip to content

Commit cc6e7c6

Browse files
authored
fix(server): adjust indentation in debug log message (#5826)
1 parent 2db53a9 commit cc6e7c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/core/src/server/middlewares.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const getRequestLoggerMiddleware: () => Promise<Connect.NextHandleFunctio
6161

6262
// :status :method :url :total-time ms
6363
logger.debug(
64-
`${statusColor(status)} ${method} ${color.gray(url)} ${color.gray(
64+
`${statusColor(status)} ${method} ${url} ${color.dim(
6565
`${totalTime.toFixed(3)} ms`,
6666
)}`,
6767
);
@@ -249,9 +249,7 @@ export const getHtmlFallbackMiddleware: (params: {
249249

250250
if (logger.level === 'verbose') {
251251
logger.debug(
252-
`${req.method} ${color.gray(
253-
`${req.url} ${color.yellow('fallback')} to ${newUrl}`,
254-
)}`,
252+
` ${req.method} ${req.url} ${color.yellow('fallback to')} ${newUrl}`,
255253
);
256254
}
257255

0 commit comments

Comments
 (0)