Skip to content

Commit

Permalink
692 Makes the error monitoring handler a bit more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden committed Jan 6, 2025
1 parent 63fd9c3 commit 887696b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
StoreProvider,
WfoAuth,
WfoErrorBoundary,
WfoErrorMonitoring,
WfoErrorMonitoringProvider,
WfoMenuItemLink,
WfoPageTemplate,
Expand Down Expand Up @@ -79,14 +80,21 @@ function CustomApp({
},
];

const errorMonitoringHandler: WfoErrorMonitoring | undefined = {
reportError: (error) => console.error(error),
reportMessage: () => {},
};

return (
<WfoErrorBoundary>
<OrchestratorConfigProvider
initialOrchestratorConfig={orchestratorConfig}
>
<StoreProvider initialOrchestratorConfig={orchestratorConfig}>
<SessionProvider session={pageProps.session}>
<WfoErrorMonitoringProvider>
<WfoErrorMonitoringProvider
errorMonitoringHandler={errorMonitoringHandler}
>
<WfoAuth>
<EuiProvider
colorMode={themeMode}
Expand Down

0 comments on commit 887696b

Please sign in to comment.