From e8e110c5f184e54ec7c0a2b8b935403ee9a20ed9 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Fri, 20 Dec 2024 12:51:55 -0800 Subject: [PATCH] noticeError is the only thing working --- app/divisions/page.tsx | 7 ------- app/test-error/page.tsx | 8 +------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/divisions/page.tsx b/app/divisions/page.tsx index 9b8cf052..bdda5a2c 100644 --- a/app/divisions/page.tsx +++ b/app/divisions/page.tsx @@ -17,13 +17,6 @@ export default async function Divisions() { if (data?.headers?.code === "404") { redirect("/404"); } - - if ((window as any).newrelic) { - (window as any).newrelic.log("test log from divisions server component", { - level: "error", - }); - } - return ( diff --git a/app/test-error/page.tsx b/app/test-error/page.tsx index 9b15b6af..c8c50574 100644 --- a/app/test-error/page.tsx +++ b/app/test-error/page.tsx @@ -3,12 +3,6 @@ import { useEffect } from "react"; export default function TestError() { useEffect(() => { - // Send error to New Relic - if ((window as any).newrelic) { - (window as any).newrelic.log("Test error for New Relic", { - level: "warn", - }); - } - throw new Error("Test error"); + throw new Error("Test error for New Relic"); }, []); }