odavid / typeorm-transactional-cls-hooked

A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
MIT License
522 stars 86 forks source link

Log statements don't respect `logging` option from TypeORM #75

Closed rabaut closed 3 years ago

rabaut commented 3 years ago

This bug was added in this commit:

https://github.com/odavid/typeorm-transactional-cls-hooked/commit/ee15911fa9945363812d7f5f5428789439e921cd#

console.log(`Transactional@initializeTransactionalContext\`)

console.log(`Transactional@patchRepositoryManager repositoryType: ${repositoryType?.constructor?.name}`)

These console.log statements don't respect the logging option from TypeORM. This results in log statements even when you have logging set to false.

rabaut commented 3 years ago

Thank you for fixing this so quickly!