Skip to content

Commit 70d8c14

Browse files
committed
adding logging at end to be sure we are returning
1 parent 59a7198 commit 70d8c14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/SubmissionService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,13 @@ function * createSubmission (authUser, files, entity) {
329329
}
330330

331331
logger.info('Prepared submission create event payload to pass to the Bus')
332-
logger.info(`Posting to bus ${reqBody}`)
332+
logger.info(`Posting to bus ${JSON.stringify(reqBody)}`)
333333
// Post to Bus API using Client
334334
yield helper.postToBusApi(reqBody)
335335

336336
// Inserting records in DynamoDB doesn't return any response
337337
// Hence returning the entity which is in compliance with Swagger
338+
logger.info(`done creating submission. Returning: ${JSON.stringify(item)}`)
338339
return item
339340
}
340341

0 commit comments

Comments
 (0)