Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): Change default 404 log message #17629

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Change log message
RunarVestmann committed Jan 23, 2025
commit cc2af0c1c8712d4555ead872bb7dbcfb8e173b3c
5 changes: 4 additions & 1 deletion apps/web/utils/getServerSidePropsWrapper.ts
Original file line number Diff line number Diff line change
@@ -50,7 +50,10 @@ export const getServerSidePropsWrapper: (
} catch (error) {
if (error instanceof CustomNextError) {
if (error.statusCode === 404) {
logger.info(error.title || '404 error occurred on web', error)
logger.info(
error.title || '404 status code, page not found on web',
error,
)

const path = safelyExtractPathnameFromUrl(ctx.req.url)
if (!path) {