Skip to content

Commit

Permalink
Add some logging so I know when things are happening
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmw committed Jan 26, 2024
1 parent e2e5301 commit 466bfaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/MMAPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ import { MMAPage } from './components/mma/MMAPage';
declare let WEBPACK_BUILD: string;

if (typeof window !== 'undefined' && window.guardian && window.guardian.dsn) {
console.log('Initialising Sentry');
Sentry.init({
dsn: window.guardian.dsn,
release: WEBPACK_BUILD || 'local',
environment: window.guardian.domain,
});

console.log(
'Setting the referrer as tag gu:referrer',
document.referrer || 'none',
);
Sentry.setTag('gu:referrer', document.referrer || 'none');
}

Expand Down

0 comments on commit 466bfaa

Please sign in to comment.