'use strict';

var node = require('@sentry/node');
var logger = require('./logger.js');

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const captureDprError = (error, message) => {
    // Log the error to our logs
    logger.default.error(message, error);
    // Capture in sentry
    node.captureException(error);
};

exports.captureDprError = captureDprError;
//# sourceMappingURL=captureError.js.map
