From 4f248e57025338678d27b87e2694b069b911b567 Mon Sep 17 00:00:00 2001 From: horo <143025439+horo-fox@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:19:26 +0900 Subject: [PATCH] Increase log severity when a page's `getStaticPaths` fails (#10707) --- .changeset/slimy-geese-own.md | 5 +++++ packages/astro/src/core/build/generate.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/slimy-geese-own.md diff --git a/.changeset/slimy-geese-own.md b/.changeset/slimy-geese-own.md new file mode 100644 index 000000000000..6fca5282ba13 --- /dev/null +++ b/.changeset/slimy-geese-own.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Logs an error when a page's `getStaticPaths` fails diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 7dc00073fc5b..d82ecdbd8daa 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -335,7 +335,7 @@ async function getPathsForRoute( logger, ssr: serverLike, }).catch((err) => { - logger.debug('build', `├── ${bold(red('✗'))} ${route.component}`); + logger.error('build', `Failed to call getStaticPaths for ${route.component}`); throw err; });