.
This commit is contained in:
parent
465ddd1644
commit
98a0231906
@ -69,7 +69,7 @@ export abstract class TransactionManager implements ITransactionManager {
|
|||||||
await this.rollback();
|
await this.rollback();
|
||||||
const error = err as Error;
|
const error = err as Error;
|
||||||
logger.error(`❌ Transaction rolled back due to error: ${error.message}`, {
|
logger.error(`❌ Transaction rolled back due to error: ${error.message}`, {
|
||||||
//stack: error.stack,
|
stack: error.stack,
|
||||||
label: "TransactionManager.start",
|
label: "TransactionManager.start",
|
||||||
});
|
});
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@ -76,7 +76,7 @@ export class SequelizeTransactionManager extends TransactionManager {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
const error = err as Error;
|
const error = err as Error;
|
||||||
logger.error(`❌ Transaction rolled back due to error: ${error.message}`, {
|
logger.error(`❌ Transaction rolled back due to error: ${error.message}`, {
|
||||||
//stack: error.stack,
|
stack: error.stack,
|
||||||
label: "SequelizeTransactionManager.complete",
|
label: "SequelizeTransactionManager.complete",
|
||||||
});
|
});
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user