log exception in catch async function

This commit is contained in:
Claus-Peter Huebner 2023-07-25 00:57:32 +02:00
parent d1b5000d8f
commit e1a7910443
3 changed files with 6 additions and 6 deletions

View File

@ -543,8 +543,8 @@ export class ContributionResolver {
await queryRunner.commitTransaction()
// trigger to send transaction via dlt-connector
sendTransactionsToDltConnector().catch(() => {
logger.error('error on sending transactions to DltConnector')
sendTransactionsToDltConnector().catch((e) => {
logger.error('error on sending transactions to DltConnector:', e)
})
logger.info('creation commited successfuly.')

View File

@ -314,8 +314,8 @@ export class TransactionLinkResolver {
releaseLock()
}
// trigger to send transaction via dlt-connector
sendTransactionsToDltConnector().catch(() => {
logger.error('error on sending transactions to DltConnector')
sendTransactionsToDltConnector().catch((e) => {
logger.error('error on sending transactions to DltConnector:', e)
})
return true
} else {

View File

@ -162,8 +162,8 @@ export const executeTransaction = async (
)
// trigger to send transaction via dlt-connector
sendTransactionsToDltConnector().catch(() => {
logger.error('error on sending transactions to DltConnector')
sendTransactionsToDltConnector().catch((e) => {
logger.error('error on sending transactions to DltConnector:', e)
})
} catch (e) {
await queryRunner.rollbackTransaction()