Skip to content

Commit 3057903

Browse files
committed
logging to debug level
1 parent 50bfe72 commit 3057903

File tree

1 file changed

+3
-3
lines changed
  • packages/template-mrt-reference-app/app

1 file changed

+3
-3
lines changed

packages/template-mrt-reference-app/app/ssr.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ const loggingMiddleware = (req, res, next) => {
363363

364364
const envBasePathMiddleware = (req, res, next) => {
365365
const basePath = process.env.MRT_ENV_BASE_PATH
366-
console.log(`Base path: ${basePath}`)
367-
console.log(`Request path: ${req.url}`)
366+
console.debug(`Base path: Base path: ${basePath}`)
367+
console.debug(`Request path: Request path: ${req.url}`)
368368
if (basePath && (req.path.startsWith(`${basePath}/`) || req.path === basePath)) {
369369
req.url = req.url.slice(basePath.length) || '/'
370-
console.log(
370+
console.debug(
371371
`Base path: Rewrote ${basePath} -> Original url: ${req.originalUrl} -> New url: ${req.url}`
372372
)
373373
}

0 commit comments

Comments
 (0)