Created
April 17, 2020 06:51
-
-
Save enricop89/3dd8fc87c415d4c523332bde6504e0fc to your computer and use it in GitHub Desktop.
AWS lambda handler - Global exceptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.handler = async (event) => { | |
console.log('Received event:', JSON.stringify(event, null, 2)); | |
try { | |
// Function Logic | |
} catch (err) { | |
console.log('[Handler] - Main function: ', err); | |
// Send the error to Third-party monitoring services | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment