diff --git a/index.js b/index.js index 6dd6c46..e440d29 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,6 @@ function getGitTag() { } } -// Initialize Sentry if (process.env.SENTRY_DSN) { Sentry.init({ dsn: process.env.SENTRY_DSN, @@ -23,6 +22,9 @@ if (process.env.SENTRY_DSN) { release: getGitTag(), integrations: [Sentry.captureConsoleIntegration({ levels: ['error'] })], }); + console.log('Sentry initialized'); +} else { + console.log('Sentry DSN not provided, Sentry not initialized'); } const request = require('request');