Removed Sentry from oembed service

- I'm not sure if we gain anything here except noise
- it was added after a bug in the oembed service but it was regarding
  oembed-parser and not metascraper
This commit is contained in:
Daniel Lockyer 2022-08-15 09:23:33 +02:00
parent 577b30c4f6
commit dfbe8ee296

View File

@ -1,7 +1,6 @@
const errors = require('@tryghost/errors');
const tpl = require('@tryghost/tpl');
const logging = require('@tryghost/logging');
const sentry = require('../../shared/sentry');
const {extract, hasProvider} = require('oembed-parser');
const cheerio = require('cheerio');
const _ = require('lodash');
@ -134,7 +133,6 @@ class OEmbed {
scraperResponse = await metascraper({html, url});
} catch (err) {
// Log to avoid being blind to errors happenning in metascraper
sentry.captureException(err);
logging.error(err);
return this.unknownProvider(url);
}