Skip to content

Commit

Permalink
raven capture on error
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed Jan 23, 2022
1 parent 1c41067 commit 5340e12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/worker/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5340e12

Please sign in to comment.