Closed ahuijiLearning closed 2 years ago
Hi, I have no experience with TypeORM's Logger. This is the first time I've seen the logQuerySlow
method and I can't find much documentation about it. I assume that they use some kind of asynchronous event system that logs the slow query outside the context of the request.
But before going any further, I think I found your question on StackOverflow regarding the same thing, but using plain AsyncLocalStorage
.
If it doesn't work with plain AsyncLocalStorage
, then there's sadly nothing I can change in my package to make it work and I recommend opening an issue in the TypeORM's github repository.
The only "solution" as of right now would be to use a different ORM.
What is the cause of this, and what solutions are available