Skip to content

Commit 8b782cb

Browse files
author
vikasrohit
authored
additional logging for billing accounts (#20)
* Adding log statement before associating BA * log statement for checking existing association of BA
1 parent 6be7923 commit 8b782cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/ProcessorService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ async function calculateFeeAndCheckAssociate (connection, directProjectId, billi
195195
// not need to perform checking if we are going to create the direct project latter
196196
if (ifProjectExists) {
197197
alreadyAssociated = await checkBillingAccountAssociate(connection, directProjectId, billingAccountId)
198+
logger.info(`Billing Account already associated: ${alreadyAssociated}`)
198199

199200
if (!alreadyAssociated) {
200201
// fetch one of associated billing account to check client consistent
@@ -482,6 +483,7 @@ async function processUpdate (message) {
482483
await updateProject(connection, directProjectId, fee, existingProject)
483484

484485
if (needAssociate) {
486+
logger.info(`Associating billling account ${billingAccountId} to direct project ${directProjectId}`)
485487
await associateBillingAccountToProject(connection, directProjectId, billingAccountId)
486488
}
487489
} else {

0 commit comments

Comments
 (0)