0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Switched from Sentry.captureMessage to captureException for better logging

no issue

- `Sentry.captureMessage` is used for plain text messages rather than errors or objects
This commit is contained in:
Kevin Ansfield 2021-05-26 17:18:02 +01:00
parent 5b2194d5e8
commit 09716646b0

View file

@ -1,5 +1,5 @@
import Service, {inject as service} from '@ember/service'; import Service, {inject as service} from '@ember/service';
import {captureMessage} from '@sentry/browser'; import {captureException} from '@sentry/browser';
import {dasherize} from '@ember/string'; import {dasherize} from '@ember/string';
import {A as emberA, isArray as isEmberArray} from '@ember/array'; import {A as emberA, isArray as isEmberArray} from '@ember/array';
import {filter} from '@ember/object/computed'; import {filter} from '@ember/object/computed';
@ -102,7 +102,7 @@ export default Service.extend({
showAPIError(resp, options) { showAPIError(resp, options) {
if (this.config.get('sentry_dsn')) { if (this.config.get('sentry_dsn')) {
captureMessage(resp); captureException(resp);
} }
// handle "global" errors // handle "global" errors