summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/app/index.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts
index 58dbae9f5..5b9413578 100644
--- a/packages/astro/src/core/app/index.ts
+++ b/packages/astro/src/core/app/index.ts
@@ -281,8 +281,12 @@ export class App {
}
}
if (routeData) {
- this.#logger.debug("router", "The adapter " + this.#manifest.adapterName + " provided a custom RouteData for ", request.url);
- this.#logger.debug("router", "RouteData:\n" + routeData);
+ this.#logger.debug(
+ 'router',
+ 'The adapter ' + this.#manifest.adapterName + ' provided a custom RouteData for ',
+ request.url
+ );
+ this.#logger.debug('router', 'RouteData:\n' + routeData);
}
if (locals) {
if (typeof locals !== 'object') {
@@ -300,12 +304,12 @@ export class App {
}
if (!routeData) {
routeData = this.match(request);
- this.#logger.debug("router", "Astro matched the following route for "+ request.url);
- this.#logger.debug("router", "RouteData:\n" + routeData);
+ this.#logger.debug('router', 'Astro matched the following route for ' + request.url);
+ this.#logger.debug('router', 'RouteData:\n' + routeData);
}
if (!routeData) {
- this.#logger.debug("router", "Astro hasn't found routes that match " + request.url);
- this.#logger.debug("router", "Here's the available routes:\n", this.#manifestData);
+ this.#logger.debug('router', "Astro hasn't found routes that match " + request.url);
+ this.#logger.debug('router', "Here's the available routes:\n", this.#manifestData);
return this.#renderError(request, { locals, status: 404 });
}
const pathname = this.#getPathnameFromRequest(request);