express-logger-unique-req-id icon indicating copy to clipboard operation
express-logger-unique-req-id copied to clipboard

Return wrong context in promise chain

Open tunv-pnc opened this issue 6 years ago • 2 comments

I'm using express-logger-unique-req-id to log info and identify by request id(auto generate by express-logger-unique-req-id). In normal case its working fine (system log with current request-id) but if I log in promise chain it always return request-id of the first request(first request after service started). Please help me how to always get context of current request.

Thanks a lot!

tunv-pnc avatar Dec 27 '18 11:12 tunv-pnc

I always work with promise chain and it didn't happen to me so far. Could you paste a small example where I can test your issue?

davicente avatar Jan 18 '19 08:01 davicente

I'm facing a similar problem. When I log in promise chain (using Q.fcall for promise) it doesn't return the request-id in then function. Please help

neha1o3 avatar Jun 09 '23 05:06 neha1o3