Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Add Error Logging #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Error Logging #42

wants to merge 1 commit into from

Conversation

DomBelcher
Copy link
Contributor

This adds error logging to all Lambdas in the service to make debugging easier

@DomBelcher DomBelcher requested a review from stephenrob August 15, 2018 08:48
@@ -13,6 +13,7 @@ module.exports.handle = (event, context, callback) => {
callback(null, generateSuccessMessage(loanData.item_loan.loan_id))
})
.catch(e => {
console.log(e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you look at adding a proper nodejs logging library making use of info, debug etc. The full stack trace e should only be done on debug - Generally just a message saying Failed to retrieve loan X is better

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants