import { captureException } from '@sentry/node';
import logger from './logger.js';

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

export { captureDprError };
//# sourceMappingURL=captureError.js.map
