From 5340e123fb8bf7221220eb24812282d8fe533740 Mon Sep 17 00:00:00 2001 From: Vibhu Dujari Date: Sun, 23 Jan 2022 16:21:11 +0530 Subject: [PATCH] raven capture on error --- src/plugins/worker/handlers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/worker/handlers.js b/src/plugins/worker/handlers.js index 39e2623..efc2cb5 100644 --- a/src/plugins/worker/handlers.js +++ b/src/plugins/worker/handlers.js @@ -7,6 +7,7 @@ const { uploadToMinio, linkForKey } = require('../../utils/minio'); const config = require('../../config'); const pdf = require('../../utils/pdf'); const U = require('./utils'); +const Raven = require('raven') // set default timezone moment.tz.setDefault('Asia/Kolkata'); @@ -129,6 +130,7 @@ module.exports = { url: linkForKey(bucketName, destKeyName), }) } catch(err) { + Raven.captureException(err) U.sendCallback(data.callback, { secret: config.appSecret, certificateId: data.certificateId,