express-logger-unique-req-id
express-logger-unique-req-id copied to clipboard
Return wrong context in promise chain
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!
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?
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