From 09716646b0d54297cfbed70f77e0230044c5375e Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 26 May 2021 17:18:02 +0100 Subject: [PATCH] Switched from `Sentry.captureMessage` to `captureException` for better logging no issue - `Sentry.captureMessage` is used for plain text messages rather than errors or objects --- ghost/admin/app/services/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/services/notifications.js b/ghost/admin/app/services/notifications.js index e913318226..40c6bc3b70 100644 --- a/ghost/admin/app/services/notifications.js +++ b/ghost/admin/app/services/notifications.js @@ -1,5 +1,5 @@ import Service, {inject as service} from '@ember/service'; -import {captureMessage} from '@sentry/browser'; +import {captureException} from '@sentry/browser'; import {dasherize} from '@ember/string'; import {A as emberA, isArray as isEmberArray} from '@ember/array'; import {filter} from '@ember/object/computed'; @@ -102,7 +102,7 @@ export default Service.extend({ showAPIError(resp, options) { if (this.config.get('sentry_dsn')) { - captureMessage(resp); + captureException(resp); } // handle "global" errors