mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
log exception in catch async function
This commit is contained in:
parent
d1b5000d8f
commit
e1a7910443
@ -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.')
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user