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

Fixed editor save retry attempts data not making it to Sentry

no issue

- the options passed to `captureMessage` have specific top-level keys, arbitrary data needs to be supplied by the `extra` key rather
This commit is contained in:
Kevin Ansfield 2021-06-24 17:09:57 +01:00
parent 33b04313e0
commit 386d59d709

View file

@ -612,7 +612,7 @@ export default Controller.extend({
if (attempts !== 0 && this.config.get('sentry_dsn')) {
let totalSeconds = moment().diff(startTime, 'seconds');
captureMessage('Saving post required multiple attempts', {attempts, totalSeconds});
captureMessage('Saving post required multiple attempts', {extra: {attempts, totalSeconds}});
}
} catch (error) {
attempts += 1;